File tree Expand file tree Collapse file tree 3 files changed +52
-4
lines changed Expand file tree Collapse file tree 3 files changed +52
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Exercise tests with PHPUnit 11
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+
10
+ jobs :
11
+ test :
12
+ name : PHP ${{ matrix.php-version }} - ${{ matrix.os }} - ${{ github.event_name }}
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ fail-fast : false
16
+ matrix :
17
+ # php-version: [8.2, 8.3, 8.4]
18
+ # os: [ubuntu-24.04, windows-2022, macOS-14]
19
+ php-version : [8.4]
20
+ os : [ubuntu-24.04]
21
+
22
+ steps :
23
+ - name : Set git line endings
24
+ if : ${{ matrix.os == 'windows-2022' }}
25
+ run : |
26
+ git config --system core.autocrlf false
27
+ git config --system core.eol lf
28
+
29
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
30
+
31
+ - uses : shivammathur/setup-php@0f7f1d08e3e32076e51cae65eb0b0c871405b16e
32
+ with :
33
+ php-version : ${{ matrix.php-version }}
34
+ extensions : gmp
35
+
36
+ - name : Install dependencies
37
+ shell : bash
38
+ run : |
39
+ curl -Lo ./bin/phpunit-11.phar https://phar.phpunit.de/phpunit-11.phar
40
+ chmod +x bin/phpunit-11.phar
41
+
42
+ - name : Test exercises
43
+ continue-on-error : true
44
+ shell : bash
45
+ env :
46
+ PHPUNIT_BIN : ' bin/phpunit-11.phar'
47
+ XDEBUG_MODE : off
48
+ run : bin/test.sh
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ The `lint:check` is included in `composer ci` to run the CI checks locally.
74
74
- Follow the [ PSR-12] coding style (Exercisms PHP track uses a slightly [ modified] [ local-file-phpcs-config ] version of [ PSR-12] ).
75
75
- Run ` composer ci ` to run CI checks locally before pushing.
76
76
- CI is run on all pull requests, it must pass the required checks for merge.
77
- - CI is running all tests on PHP 8.0 to PHP 8.2 for Linux, Windows and MacOS.
77
+ - CI is running all tests on PHP 8.1 to PHP 8.4 for Linux, Windows and MacOS.
78
78
79
79
## Generating new practice exercises
80
80
Original file line number Diff line number Diff line change 10
10
},
11
11
"require-dev" : {
12
12
"php" : " ^8.1" ,
13
- "phpunit/phpunit" : " ^10.5" ,
14
- "slevomat/coding-standard" : " ^8.14 .1" ,
15
- "squizlabs/php_codesniffer" : " ^3.11.1 "
13
+ "phpunit/phpunit" : " ^10.5 | ^11.5 " ,
14
+ "slevomat/coding-standard" : " ^8.19 .1" ,
15
+ "squizlabs/php_codesniffer" : " ^3.13.2 "
16
16
},
17
17
"scripts" : {
18
18
"post-install-cmd" : [
You can’t perform that action at this time.
0 commit comments