-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1000 Bytes
/
ci.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
name: Unit Tests
run-name: Running unit test cases
on:
pull_request: {}
push:
branches: ["master"]
jobs:
test-build-setup:
name: "Test PR"
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ 'ubuntu-latest']
php-versions: [ '7.1','7.2','7.3','7.4', '8.0', '8.1' ]
phpunit-versions: [ 'latest' ]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- uses: php-actions/composer@v6
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
env:
TEST_NAME: UnitTests
with:
bootstrap: vendor/autoload.php
configuration: test/phpunit.xml
args: --coverage-text