Skip to content

Commit a316858

Browse files
Add GitHub workflow for PHP version testing
1 parent 86d4b4c commit a316858

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/tests.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
name: Run tests
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
php: [8.1, 8.2, 8.3]
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v2
23+
24+
- name: Set up PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php }}
28+
extensions: mbstring, sqlite3, pdo_sqlite, json, tokenizer, xml, curl, zip
29+
30+
- name: Install Composer dependencies
31+
run: composer install --prefer-dist --no-progress --no-suggest
32+
33+
- name: Run tests
34+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)