Skip to content

Commit 0204655

Browse files
committed
.github/workflows: Fix test action
See This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
1 parent 6b8478a commit 0204655

1 file changed

Lines changed: 25 additions & 22 deletions

File tree

.github/workflows/tests.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
name: Tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
46

57
jobs:
6-
tests:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
php: ['7.4', '8.0', '8.1', '8.2']
8+
tests:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php: ['7.4', '8.0', '8.1', '8.2']
13+
fail-fast: false
1114

12-
fail-fast: false
15+
name: PHP ${{ matrix.php }} tests
16+
steps:
17+
- uses: actions/checkout@v4
1318

14-
name: PHP ${{ matrix.php }} tests
15-
steps:
16-
- uses: actions/checkout@v2
17-
- uses: shivammathur/setup-php@v2
18-
with:
19-
php-version: ${{ matrix.php }}
20-
extensions: mbstring, tokenizer, sqlite3
21-
coverage: none
19+
- uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: ${{ matrix.php }}
22+
extensions: mbstring, tokenizer, sqlite3
23+
coverage: none
2224

23-
- run: composer install --no-interaction --prefer-dist
24-
- run: vendor/bin/tester tests -s -C
25-
- if: failure()
26-
uses: actions/upload-artifact@v2
27-
with:
28-
name: output
29-
path: tests/**/output
25+
- run: composer install --no-interaction --prefer-dist
26+
- run: vendor/bin/tester tests -s -C
27+
28+
- if: failure()
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: output
32+
path: tests/**/output

0 commit comments

Comments
 (0)