File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Unit Tests
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - " *"
10+ # Allow manually triggering the workflow.
11+ workflow_dispatch :
12+
13+ # Cancels all previous workflow runs for the same branch that have not yet completed.
14+ concurrency :
15+ # The concurrency group contains the workflow name and the branch name.
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
19+ jobs :
20+ php-tests :
21+ runs-on : ubuntu-latest
22+ timeout-minutes : 15
23+ env :
24+ COMPOSER_NO_INTERACTION : 1
25+
26+ strategy :
27+ matrix :
28+ php : ['8.1']
29+ experimental : [false]
30+
31+ include :
32+ - php : ' 8.2'
33+ experimental : true
34+
35+ name : P${{ matrix.php }} - ${{ matrix.dependency-version }}
36+ continue-on-error : ${{ matrix.experimental }}
37+
38+ steps :
39+ - name : Checkout code
40+ uses : actions/checkout@v3
41+
42+ - name : Setup PHP
43+ uses : shivammathur/setup-php@v2
44+ with :
45+ php-version : ${{ matrix.php }}
46+ ini-values : error_reporting=E_ALL, display_errors=On
47+ coverage : none
48+ tools : composer
49+
50+ - name : Install dependencies - normal
51+ if : ${{ matrix.php < 8.2 }}
52+ run : |
53+ composer install --prefer-dist --no-progress --no-interaction
54+
55+ - name : Install dependencies - ignore platform reqs
56+ if : ${{ matrix.php >= 8.2 }}
57+ run : |
58+ composer update --prefer-dist --no-progress --ignore-platform-reqs --no-interaction
59+
60+ - name : Execute Unit Tests
61+ run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments