1
- name : phpList Build
1
+ name : phpList Base Dist 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.2 ', '7.3 ', '7.4 ', '8.0 ']
26
26
dependencies : ['current', 'latest', 'oldest']
27
27
steps :
28
28
- name : Checkout
@@ -50,26 +50,36 @@ jobs:
50
50
restore-keys : ${{ runner.os }}-composer-
51
51
- name : Install the latest dependencies
52
52
run : composer update --with-dependencies --prefer-stable --prefer-dist
53
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
53
54
if : ${{ matrix.dependencies }} == "current"
54
55
- name : Install the lowest dependencies
55
56
run : composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
57
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
56
58
if : ${{ matrix.dependencies }} == "latest"
57
59
- name : Install current dependencies from composer.lock
58
60
run : composer install
61
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
59
62
if : ${{ matrix.dependencies }} == "oldest"
60
63
- name : Set up database schema
61
64
run : mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} ${{ env.DB_DATABASE }} < vendor/phplist/core/resources/Database/Schema.sql
65
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
62
66
- name : Validating composer.json
63
67
run : composer validate --no-check-all --no-check-lock --strict;
68
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
64
69
- name : Linting all php files
65
70
run : find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l;
66
71
- name : Run integration tests with phpunit
67
72
run : vendor/bin/phpunit tests/Integration/
73
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
68
74
- name : Running the system tests
69
75
run : vendor/bin/phpunit tests/Integration/;
76
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
70
77
- name : Running static analysis
71
78
run : vendor/bin/phpstan analyse -l 5 src/ tests/;
79
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
72
80
- name : Running PHPMD
73
81
run : vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml;
82
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
74
83
- name : Running PHP_CodeSniffer
75
- run : vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/;
84
+ run : vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/;
85
+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
0 commit comments