Skip to content

Commit 529b28a

Browse files
committed
new testing workflow
1 parent c4c2d88 commit 529b28a

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
10+
test:
11+
name: PHPUnit
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
php-version:
17+
- "7.4"
18+
- "8.0"
19+
- "8.1"
20+
- "8.2"
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v3
25+
26+
- name: Setup PHP ${{ matrix.php-version }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
31+
- name: Install dependencies
32+
run: composer install --prefer-dist --no-progress
33+
34+
- name: Run PHPUnit
35+
run: vendor/bin/phpunit tests

0 commit comments

Comments
 (0)