Skip to content

Commit e216a72

Browse files
committed
ci: run phpunit tests
1 parent db87d25 commit e216a72

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI - Continuous Integration
2+
on:
3+
pull_request:
4+
types: [ opened, ready_for_review, synchronize, reopened ]
5+
jobs:
6+
phpunit:
7+
name: PHPUnit
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php-version:
14+
- "7.4"
15+
- "8.0"
16+
- "8.1"
17+
dependency-versions:
18+
- "lowest"
19+
- "highest"
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php-version }}
29+
coverage: none
30+
31+
- name: Install composer dependencies
32+
uses: ramsey/composer-install@v2
33+
with:
34+
dependency-versions: ${{ matrix.dependency-versions }}
35+
36+
- name: Run PHPUnit
37+
run: vendor/bin/phpunit tests

0 commit comments

Comments
 (0)