Skip to content

Commit a0a3c3f

Browse files
committed
added github action
Signed-off-by: Christoph Massmann <[email protected]>
1 parent 91113fc commit a0a3c3f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,30 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
66
test:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php-versions: [ "7.4", "8.0", "8.1", "8.2", "8.3" ]
10+
php-version: [ "7.4", "8.0", "8.1", "8.2", "8.3" ]
1111

1212
steps:
1313
- uses: actions/checkout@v4
1414

15+
- name: Setup PHP
16+
uses: shivammathur/setup-php@v2
17+
with:
18+
php-version: ${{ matrix.php-version }}
19+
1520
- uses: php-actions/composer@v6
1621
with:
17-
php_version: ${{ matrix.php-versions }}
22+
php_version: ${{ matrix.php-version }}
1823

1924
- name: Run PHPUnit tests
2025
run: vendor/bin/phpunit
2126

2227
- uses: php-actions/phpstan@v3
2328
with:
2429
path: src/
25-
php_version: ${{ matrix.php-versions }}
30+
php_version: ${{ matrix.php-version }}

0 commit comments

Comments
 (0)