-
-
Notifications
You must be signed in to change notification settings - Fork 10
41 lines (38 loc) · 926 Bytes
/
build.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
on:
pull_request:
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
push:
branches: [ 'master' ]
paths-ignore:
- 'docs/**'
- 'README.md'
- 'CHANGELOG.md'
- '.gitignore'
- '.gitattributes'
- 'infection.json.dist'
- 'psalm.xml'
name: build
jobs:
phpunit:
name: PHP ${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ 81, 82, 83 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
working-directory: ./tests
run: docker compose build
- name: PHP Unit tests for PHP ${{ matrix.php }}
working-directory: ./tests
run: docker compose run --rm php${{ matrix.php }} vendor/bin/phpunit --colors=always -v --debug