Skip to content

Commit e631b09

Browse files
committed
Add Github CI support
1 parent 0f12cbd commit e631b09

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "CI"
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
tests:
12+
name: "PHP ${{ matrix.php-version }}"
13+
14+
runs-on: 'ubuntu-latest'
15+
16+
strategy:
17+
matrix:
18+
php-version:
19+
- '8.3'
20+
- '8.4'
21+
22+
steps:
23+
- name: "Checkout code"
24+
uses: actions/checkout@v4
25+
26+
- name: "Install PHP with extensions"
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
coverage: "none"
30+
php-version: ${{ matrix.php-version }}
31+
ini-values: memory_limit=-1
32+
33+
- name: "Add PHPUnit matcher"
34+
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
35+
36+
- run: composer install
37+
38+
- name: "Run tests"
39+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)