-
-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (55 loc) · 1.38 KB
/
tests.yaml
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: "PHP Tester"
on:
pull_request:
paths-ignore:
- "docs/**"
push:
branches:
- "main"
tags:
- v*
schedule:
- cron: "0 8 * * 1" # At 08:00 on Monday
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.ORGANIZATION_ACCESS_TOKEN }}"}}'
jobs:
tests:
name: "PHP Tests"
uses: "fastybird/.github/.github/workflows/phpunit.yaml@main"
secrets: inherit
with:
php: "${{ matrix.php-version }}"
redis: true
strategy:
fail-fast: false
matrix:
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]
code-coverage:
name: "PHP Tests With Code Coverage"
needs: [ "tests" ]
if: "github.event_name == 'push'"
uses: "fastybird/.github/.github/workflows/coverage.yaml@main"
secrets: inherit
with:
php: "${{ matrix.php-version }}"
redis: true
strategy:
fail-fast: false
matrix:
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]
mutations:
name: "PHP Tests For Mutants"
needs: [ "tests" ]
if: "github.event_name == 'push'"
uses: "fastybird/.github/.github/workflows/mutations.yaml@main"
secrets: inherit
with:
php: "${{ matrix.php-version }}"
redis: true
strategy:
fail-fast: false
matrix:
php-version: [ "8.2" ]
operating-system: [ "ubuntu-latest" ]