-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 929 Bytes
/
test.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: Unit Test
on:
workflow_dispatch:
pull_request:
push:
branches: [ master ]
jobs:
tests:
name: Test on PHP ${{ matrix.php_versions }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php_versions == '8.1' }}
if: "!contains(github.event.head_commit.message, '--skip ci') && !github.event.pull_request.draft"
strategy:
matrix:
php_versions: ['7.4', '8.0', '8.1']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
coverage: xdebug2
- uses: ramsey/composer-install@v2
- name: Run test suite
run: vendor/bin/codecept run unit --coverage-text
# - name: Run infection suite
# run: vendor/bin/infection --threads=4
# - name: Run PHPBench suite
# run: vendor/bin/phpbench run --report=performance