-
-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (32 loc) · 1.07 KB
/
phpunit.yml
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
30
31
32
33
34
35
36
37
38
39
name: PHPUnit Tests
on:
pull_request:
push:
branches:
- develop
- main
# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
test:
name: PHP Unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use desired version of PHP (7.4 with xdebug)
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: xdebug
- name: Composer install
run: composer install
- name: Running the PHPUnit tests
continue-on-error: true
run: composer run test