Skip to content

Commit 49f84cf

Browse files
committed
Update tests.yml
1 parent 5d8e709 commit 49f84cf

File tree

1 file changed

+41
-2
lines changed

1 file changed

+41
-2
lines changed

.github/workflows/tests.yml

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,59 @@ concurrency:
2424

2525
jobs:
2626
tests:
27-
name: "Tests"
27+
name: "Tests PHPUnit 12.x"
2828
runs-on: ${{ matrix.operating-system }}
2929
timeout-minutes: 60
3030

3131
strategy:
3232
fail-fast: false
3333
matrix:
3434
php-version:
35-
- "8.2"
3635
- "8.3"
3736
- "8.4"
3837
- "8.5"
3938
operating-system: [ ubuntu-latest, windows-latest ]
4039

40+
steps:
41+
- name: "Checkout"
42+
uses: actions/checkout@v4
43+
44+
- name: "Install PHP"
45+
uses: "shivammathur/setup-php@v2"
46+
with:
47+
coverage: "none"
48+
php-version: "${{ matrix.php-version }}"
49+
tools: pecl
50+
extensions: ds,mbstring
51+
ini-file: development
52+
ini-values: memory_limit=-1
53+
54+
- uses: "ramsey/composer-install@v3"
55+
56+
- name: "Upgrade PHPUnit 12"
57+
shell: bash
58+
run: |
59+
composer require --dev phpunit/phpunit:^12 brianium/paratest:^7.16 --update-with-dependencies --ignore-platform-reqs --working-dir=tests
60+
composer require --dev phpunit/phpunit:^12 sebastian/diff --update-with-dependencies --ignore-platform-reqs
61+
62+
- name: "Check PHP configuration"
63+
run: "vendor/bin/phpunit --check-php-configuration"
64+
65+
- name: "Tests"
66+
run: "make tests"
67+
68+
tests-82:
69+
name: "Tests PHPUnit 11.x"
70+
runs-on: ${{ matrix.operating-system }}
71+
timeout-minutes: 60
72+
73+
strategy:
74+
fail-fast: false
75+
matrix:
76+
php-version:
77+
- "8.2"
78+
operating-system: [ ubuntu-latest, windows-latest ]
79+
4180
steps:
4281
- name: "Checkout"
4382
uses: actions/checkout@v4

0 commit comments

Comments
 (0)