-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (58 loc) · 1.77 KB
/
Copy pathunit-tests.yaml
File metadata and controls
68 lines (58 loc) · 1.77 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
65
66
67
68
---
name: Unit Tests
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
branches:
- master
paths-ignore:
- 'docs/**'
jobs:
lint_files:
uses: llaville/.github/.github/workflows/mega-linter.yml@master
with:
repository: ${{ github.repository }}
unit_tests:
needs: lint_files
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
-
os: ubuntu-18.04
php: 7.2
tools: phpunit:7.5.20
-
os: ubuntu-18.04
php: 7.3
tools: phpunit
-
os: ubuntu-latest
php: 7.4
tools: phpunit
-
os: ubuntu-latest
php: 8.0
tools: phpunit
name: Monolog Callback Filter Handler
steps:
- # Git Checkout
name: Checkout
uses: actions/checkout@v3
- # Setup PHP runtime
name: Setup PHP runtime
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: ${{ matrix.tools }}
- # Install Composer dependencies
name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--prefer-dist --no-scripts"
- # Run unit tests
name: Unit tests
run: phpunit