11name : Run tests
22
3- on :
3+ on :
44 push :
55 pull_request :
66 types : [opened, synchronize, reopened]
@@ -11,12 +11,17 @@ jobs:
1111 test-php :
1212 name : Test on php ${{ matrix.php-version }} and ${{ matrix.os }}
1313 runs-on : ${{ matrix.os }}
14+ continue-on-error : ${{ matrix.experimental }}
1415 strategy :
1516 matrix :
1617 php-version : ["7.1", "7.2", "7.3", "7.4", "8.0"]
1718 os : [ubuntu-latest]
19+ experimental : [false]
20+ composer-options : ['']
21+ include :
22+ - { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
1823 steps :
19- - uses : actions/checkout@v1
24+ - uses : actions/checkout@v2
2025 - name : Use php ${{ matrix.php-version }}
2126 uses : shivammathur/setup-php@v2
2227 with :
@@ -29,22 +34,68 @@ jobs:
2934 path : ~/.composer/cache/
3035 key : composer-cache
3136 - name : Install dependencies
32- if : ${{ matrix.php-version != '8.0' }}
33- run : composer install --no-interaction --prefer-dist --no-progress --no-suggest
34- - name : Install dependencies for php 8.0
35- if : ${{ matrix.php-version == '8.0' }}
36- run : composer install --no-interaction --prefer-dist --no-progress --no-suggest --ignore-platform-reqs
37+ run : composer install --no-interaction ${{ matrix.composer-options }}
3738 - name : Run php tests
3839 run : composer run phpunit
3940 - name : Send coverage
4041 uses : codecov/codecov-action@v1
4142
4243 test-phar :
43- name : Run command line tests on the phar
44- runs-on : ubuntu-latest
44+ name : Run command line tests on the phar with php ${{ matrix.php-version }} on ${{ matrix.os }}
45+ runs-on : ${{ matrix.os }}
46+ continue-on-error : ${{ matrix.experimental }}
47+ strategy :
48+ fail-fast : false
49+ matrix :
50+ php-version : ["7.1", "7.2", "7.3", "7.4", "8.0"]
51+ os : [ubuntu-latest]
52+ experimental : [false]
53+ composer-options : ['']
54+ include :
55+ - { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
4556 steps :
46- - uses : actions/checkout@v1
57+ - uses : actions/checkout@v2
58+ - name : Use php ${{ matrix.php-version }}
59+ uses : shivammathur/setup-php@v2
60+ with :
61+ php-version : ${{ matrix.php-version }}
62+ - name : Cache module
63+ uses : actions/cache@v2
64+ with :
65+ path : ~/v2.1.8.tar.gz
66+ key : shunit2-cache
67+ - name : Setup shunit 2
68+ run : ./tests/phar/install-tests.sh
4769 - name : Run phar tests
48- uses : sudo-bot/action-shunit2@latest
70+ run : |
71+ export PATH="$PATH:$HOME/shunit2-2.1.8/"
72+ COMPOSER_BIN="/bin/composer" COMPOSER_OPTIONS="${{ matrix.composer-options }}" ./tests/phar/tests.sh
73+
74+ test-resume-from-parse :
75+ name : Run resume from parse tests with php ${{ matrix.php-version }} on ${{ matrix.os }}
76+ runs-on : ${{ matrix.os }}
77+ continue-on-error : ${{ matrix.experimental }}
78+ strategy :
79+ fail-fast : false
80+ matrix :
81+ php-version : ["7.1", "7.2", "7.3", "7.4", "8.0"]
82+ os : [ubuntu-latest]
83+ experimental : [false]
84+ composer-options : ['']
85+ include :
86+ - { php-version: '8.1', experimental: true, os: ubuntu-latest, composer-options: '--ignore-platform-reqs' }
87+ steps :
88+ - uses : actions/checkout@v2
89+ - name : Use php ${{ matrix.php-version }}
90+ uses : shivammathur/setup-php@v2
4991 with :
50- cli : " ./tests/phar/run-tests.sh"
92+ php-version : ${{ matrix.php-version }}
93+ - name : Cache module
94+ uses : actions/cache@v2
95+ with :
96+ path : ~/.composer/cache/
97+ key : composer-cache
98+ - name : Install dependencies
99+ run : composer install --no-interaction ${{ matrix.composer-options }}
100+ - name : Run resume from parse diff tests
101+ run : ./tests/resume-from-parse-test.sh
0 commit comments