22
22
strategy :
23
23
fail-fast : false
24
24
matrix :
25
- php-versions : ['7.2', '7.3', '7.4', '8.0 ']
26
- dependencies : ['current', 'latest', ' oldest']
25
+ php-versions : ['8.1 ']
26
+ dependencies : ['current', 'oldest']
27
27
steps :
28
28
- name : Checkout
29
29
uses : actions/checkout@v2
@@ -50,36 +50,23 @@ 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]
54
53
if : ${{ matrix.dependencies }} == "current"
55
- - name : Install the lowest dependencies
56
- run : composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
57
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
58
- if : ${{ matrix.dependencies }} == "latest"
59
54
- name : Install current dependencies from composer.lock
60
55
run : composer install
61
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
62
56
if : ${{ matrix.dependencies }} == "oldest"
63
57
- name : Set up database schema
64
58
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]
66
59
- name : Validating composer.json
67
60
run : composer validate --no-check-all --no-check-lock --strict;
68
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
69
61
- name : Linting all php files
70
62
run : find src/ tests/ public/ -name ''*.php'' -print0 | xargs -0 -n 1 -P 4 php -l; php -l;
71
63
- name : Run integration tests with phpunit
72
64
run : vendor/bin/phpunit tests/Integration/
73
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
74
65
- name : Running the system tests
75
- run : vendor/bin/phpunit tests/Integration/;
76
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
66
+ run : vendor/bin/phpunit tests/System/;
77
67
- name : Running static analysis
78
68
run : vendor/bin/phpstan analyse -l 5 src/ tests/;
79
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
80
69
- name : Running PHPMD
81
70
run : vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml;
82
- continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
83
71
- name : Running PHP_CodeSniffer
84
72
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