1- name : phpList Build
1+ name : phpList Core Build
22on : [push, pull_request]
33jobs :
44 main :
2222 strategy :
2323 fail-fast : false
2424 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' ]
2626 steps :
2727 - name : Checkout
2828 uses : actions/checkout@v2
@@ -51,12 +51,16 @@ jobs:
5151 restore-keys : ${{ runner.os }}-composer-
5252 - name : Install Composer dependencies
5353 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]
5455 - name : Validating composer.json
5556 run : composer validate --no-check-all --no-check-lock --strict;
57+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
5658 - name : Linting all php files
5759 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]
5861 - name : Run units tests with phpunit
5962 run : vendor/bin/phpunit tests/Unit/
63+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
6064 - name : Run integration tests with phpunit
6165 run : |
6266 export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
@@ -65,11 +69,16 @@ jobs:
6569 export PHPLIST_DATABASE_PORT=${{ job.services.mysql.ports['3306'] }}
6670 export PHPLIST_DATABASE_HOST=127.0.0.1
6771 vendor/bin/phpunit tests/Integration/
72+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
6873 - name : Running the system tests
6974 run : vendor/bin/phpunit tests/System/;
75+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
7076 - name : Running static analysis
7177 run : vendor/bin/phpstan analyse -l 5 bin/ src/ tests/ public/;
78+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
7279 - name : Running PHPMD
7380 run : vendor/bin/phpmd src/ text config/PHPMD/rules.xml;
81+ continue-on-error : ${{matrix.php-versions == '8.0' }} # [temp-php8]
7482 - 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