-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (36 loc) · 1012 Bytes
/
phpunit-unit.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
40
41
42
43
44
name: PHPUnit unit tests
on:
pull_request:
push:
jobs:
phpunit:
name: PHPUnit tests
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system:
- ubuntu-latest
php-version:
- 7.4
- 8.0
- 8.1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies
uses: php-actions/composer@v6
with:
args: --prefer-dist --ansi --no-interaction --no-progress --no-suggest
- name: PHPUnit Tests
uses: php-actions/phpunit@v3
with:
version: 9.6
bootstrap: vendor/autoload.php
configuration: phpunit.xml
php_version: ${{ matrix.php-version }}
args: --testdox --colors=always --no-interaction --verbose