Skip to content

Commit 9376b16

Browse files
committed
Set up continuous integration with GitHub Actions
1 parent 2b17b97 commit 9376b16

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php:
13+
- '8.3'
14+
- '8.4'
15+
fail-fast: false
16+
17+
steps:
18+
- name: Checkout source code
19+
uses: actions/checkout@v4
20+
21+
- name: Install PHP
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
php-version: ${{ matrix.php }}
25+
26+
- name: Install dependencies with Composer
27+
uses: ramsey/composer-install@v3
28+
with:
29+
dependency-versions: ${{ matrix.dependencies }}
30+
31+
- name: Run PHPUnit tests
32+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)