-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (23 loc) · 851 Bytes
/
phpunit.yaml
File metadata and controls
29 lines (23 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# .github/workflows/phpunit.yaml
name: phpunit
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['5.6', '7.0', '7.1', '7.3', '7.4']
name: PHP ${{ matrix.php }} tests
steps:
- run: echo "This job for ${{ github.ref }} was automatically triggered by a ${{ github.event_name }} event on ${{ runner.os }}."
# basically git clone
- uses: actions/checkout@v2
# use PHP of specific version
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none # disable xdebug, pcov
# if we 2 steps like this, we can better see if composer failed or tests
- run: composer install --no-progress
- run: vendor/bin/simple-phpunit tests/
- run: echo "This job's status is ${{ job.status }}."