1
- name : phpList Build
1
+ name : phpList Core Build
2
2
on : [push, pull_request]
3
3
jobs :
4
4
main :
22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
- php-versions : ['7.0', '7.1', '7.2', '7.3', '7.4']
25
+ php-versions : ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
26
26
steps :
27
27
- name : Checkout
28
28
uses : actions/checkout@v2
@@ -51,12 +51,16 @@ jobs:
51
51
restore-keys : ${{ runner.os }}-composer-
52
52
- name : Install Composer dependencies
53
53
run : composer install --no-progress --prefer-dist --optimize-autoloader
54
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # Temporal until full support for php8 === [temp-php8]
54
55
- name : Validating composer.json
55
56
run : composer validate --no-check-all --no-check-lock --strict;
57
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
56
58
- name : Linting all php files
57
59
run : find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l bin/*;
60
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
58
61
- name : Run units tests with phpunit
59
62
run : vendor/bin/phpunit tests/Unit/
63
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
60
64
- name : Run integration tests with phpunit
61
65
run : |
62
66
export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
@@ -65,11 +69,16 @@ jobs:
65
69
export PHPLIST_DATABASE_PORT=${{ job.services.mysql.ports['3306'] }}
66
70
export PHPLIST_DATABASE_HOST=127.0.0.1
67
71
vendor/bin/phpunit tests/Integration/
72
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
68
73
- name : Running the system tests
69
74
run : vendor/bin/phpunit tests/System/;
75
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
70
76
- name : Running static analysis
71
77
run : vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/;
78
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
72
79
- name : Running PHPMD
73
80
run : vendor/bin/phpmd src/ text config/PHPMD/rules.xml;
81
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
74
82
- name : Running PHP_CodeSniffer
75
- run : vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/;
83
+ run : vendor/bin/phpcs --standard=config/PhpCodeSniffer/ bin/ src/ tests/ public/;
84
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
0 commit comments