-
Notifications
You must be signed in to change notification settings - Fork 26
57 lines (42 loc) · 1.24 KB
/
Copy pathphpunit.yml
File metadata and controls
57 lines (42 loc) · 1.24 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
name: PHPUnit
on: pull_request
permissions:
contents: read
concurrency:
group: phpunit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-versions: ['8.1', '8.2', '8.3', '8.4', '8.5']
name: PHP ${{ matrix.php-versions }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@c541c155eee45413f5b09a52248675b1a2575231 # v2.31.1
with:
php-version: ${{ matrix.php-versions }}
coverage: none
ini-file: development
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up dependencies
run: composer i
- name: PHPUnit with ZSH
run: SHELL=zsh vendor/bin/phpunit
- name: PHPUnit with BASH
run: SHELL=bash vendor/bin/phpunit
summary:
permissions:
contents: none
runs-on: ubuntu-latest
needs: [phpunit]
if: always()
name: phpunit-summary
steps:
- name: Summary status
run: if ${{ needs.phpunit.result != 'success' }}; then exit 1; fi