-
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (54 loc) · 1.32 KB
/
phpunit.yml
File metadata and controls
64 lines (54 loc) · 1.32 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
58
59
60
61
62
63
64
name: PHPUnit
on:
push:
branches:
- main
- develop
- 'release/[0-9]+.[0-9]+*'
- 'hotfix/[0-9]+.[0-9]+*'
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpunit.xml'
- 'tests/**'
- '.github/workflows/phpunit.yml'
pull_request:
paths:
- '**.php'
- 'composer.json'
- 'composer.lock'
- 'phpunit.xml'
- 'tests/**'
- '.github/workflows/phpunit.yml'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
phpunit:
name: "PHPUnit: PHP ${{ matrix.php_version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: [ '8.1', '8.2', '8.3' ]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
tools: composer
- name: Validate Composer configuration
run: composer validate --no-check-publish
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
with:
composer-options: '--prefer-dist'
- name: Run PHPUnit
run: composer test