Skip to content

Commit 1deffb4

Browse files
Try github actions
1 parent f337dd7 commit 1deffb4

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/tests.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
php-version:
21+
- '7.1'
22+
- '7.2'
23+
- '7.3'
24+
- '7.4'
25+
- '8.0'
26+
- '8.1'
27+
- '8.2'
28+
- '8.3'
29+
- '8.4'
30+
- '8.5'
31+
32+
name: PHP ${{ matrix.php-version }}
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: ${{ matrix.php-version }}
42+
coverage: none
43+
44+
- name: Install dependencies
45+
run: composer install --prefer-dist --no-progress --no-interaction
46+
47+
- name: Run tests
48+
run: composer test

0 commit comments

Comments
 (0)