Skip to content

Commit 5831641

Browse files
committed
Add github actions test workflow
1 parent 46286a1 commit 5831641

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/tests.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php:
17+
- 5.3
18+
- 5.4
19+
- 5.5
20+
- 5.6
21+
- 7.0
22+
- 7.1
23+
- 7.2
24+
- 7.3
25+
- 7.4
26+
27+
name: PHP ${{ matrix.php }}
28+
29+
steps:
30+
- name: Check out code
31+
uses: actions/checkout@v4
32+
with:
33+
submodules: true
34+
35+
- name: Install PHP
36+
uses: shivammathur/setup-php@v2
37+
with:
38+
php-version: ${{ matrix.php }}
39+
coverage: none
40+
41+
- name: Install dependencies
42+
run: composer install --prefer-dist --no-interaction --no-progress
43+
44+
- name: Run tests
45+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)