forked from cytopia/devilbox
-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (67 loc) · 2.39 KB
/
test-php.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
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
69
70
71
72
73
74
75
76
---
# -------------------------------------------------------------------------------------------------
# Job Name
# -------------------------------------------------------------------------------------------------
name: PHP
# -------------------------------------------------------------------------------------------------
# When to run
# -------------------------------------------------------------------------------------------------
on:
# Runs on Pull Requests
pull_request:
paths:
- '.devilbox/**'
- '.github/workflows/params*.yml'
- '.github/workflows/test*.yml'
- '.github/workflows/zzz*.yml'
- '.tests/**'
- 'cfg/vhost-gen/**'
- 'compose/**'
- 'docker-compose.override.yml-example'
- 'docker-compose.yml'
- 'env-example'
- '!**.md'
# Runs on master Branch and Tags
push:
paths:
- '.devilbox/**'
- '.github/workflows/params*.yml'
- '.github/workflows/test*.yml'
- '.github/workflows/zzz*.yml'
- '.tests/**'
- 'cfg/vhost-gen/**'
- 'compose/**'
- 'docker-compose.override.yml-example'
- 'docker-compose.yml'
- 'env-example'
- '!**.md'
branches:
- master
tags:
- '[0-9]+.[0-9]+*'
jobs:
# -----------------------------------------------------------------------------------------------
# (1/3) Determine parameter settings
# -----------------------------------------------------------------------------------------------
params:
uses: ./.github/workflows/params-php.yml
# -----------------------------------------------------------------------------------------------
# (2/3) Test with default settings
# -----------------------------------------------------------------------------------------------
default:
needs: [params]
uses: ./.github/workflows/zzz-reuse-tests.yml
with:
matrix: ${{ needs.params.outputs.matrix }}
custom_config: false
operating_system: ubuntu-latest
# -----------------------------------------------------------------------------------------------
# (3/3) Test with customizedt settings
# -----------------------------------------------------------------------------------------------
custom:
needs: [params]
uses: ./.github/workflows/zzz-reuse-tests.yml
with:
matrix: ${{ needs.params.outputs.matrix }}
custom_config: true
operating_system: ubuntu-latest