Skip to content

Commit fbd8736

Browse files
committed
Add tests to CI
1 parent 514c293 commit fbd8736

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Tests"
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- "main"
10+
11+
concurrency:
12+
group: ${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
17+
tests:
18+
name: "Tests"
19+
20+
runs-on: ${{ matrix.operating-system }}
21+
22+
strategy:
23+
matrix:
24+
dependencies:
25+
- "lowest"
26+
- "highest"
27+
php-version:
28+
- "8.1"
29+
- "8.2"
30+
- "8.3"
31+
operating-system:
32+
- "ubuntu-latest"
33+
34+
steps:
35+
- name: "Checkout"
36+
uses: "actions/checkout@v3"
37+
38+
- name: "Install PHP"
39+
uses: "shivammathur/setup-php@v2"
40+
with:
41+
coverage: "none"
42+
php-version: "${{ matrix.php-version }}"
43+
extensions: mbstring
44+
45+
- name: "Install dependencies"
46+
uses: "ramsey/composer-install@v2"
47+
with:
48+
dependency-versions: "${{ matrix.dependencies }}"
49+
50+
- name: "Tests"
51+
run: "composer test"

0 commit comments

Comments
 (0)