Skip to content

Commit da7dd75

Browse files
committed
[feat] add github action
1 parent 1cefc64 commit da7dd75

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-22.04
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
php: [ 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3 ]
15+
16+
name: PHP ${{ matrix.php }}
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
ini-values: error_reporting=E_ALL
27+
tools: composer:v2
28+
coverage: none
29+
30+
- name: Install dependencies
31+
run: |
32+
composer update --prefer-dist --no-interaction --no-progress
33+
34+
- name: Execute tests
35+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)