Skip to content

Commit c5de2ef

Browse files
committed
Add first-draft GitHub Action (GHA) for PHPUnit.
1 parent 24b1b27 commit c5de2ef

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PHP Unit Tests
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
php-version:
13+
- '5.5'
14+
- '5.6'
15+
- '7.0'
16+
include:
17+
- php-version: '7.0'
18+
allow_failure: true
19+
continue-on-error: ${{ matrix.allow_failure || false }}
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: shivammathur/setup-php@v2
23+
with:
24+
coverage: xdebug
25+
extensions: gd, json, mbstring
26+
php-version: ${{ matrix.php-version }}
27+
- run: composer install --no-interaction --prefer-dist
28+
- run: vendor/bin/phpunit
29+
- uses: codecov/codecov-action@v5
30+
if: success()
31+
with:
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
- uses: coverallsapp/github-action@v2
34+
if: success()

0 commit comments

Comments
 (0)