-
Notifications
You must be signed in to change notification settings - Fork 231
61 lines (58 loc) · 1.76 KB
/
ci.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
name: "ci"
on:
pull_request:
types:
- opened
- labeled
- synchronize
branches:
- "main"
paths-ignore:
- '**.md'
- 'examples/**'
- 'LICENSE'
- 'CODEOWNERS'
- 'AUTHORS'
workflow_dispatch:
inputs:
debug:
description: "Debug"
type: boolean
required: false
default: true
run_spec:
description: "Run Spec job"
type: boolean
required: false
default: true
run_acceptance:
description: "Run Acceptance job"
type: boolean
required: false
default: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Matrix:
uses: ./.github/workflows/matrix.yml
with:
flags: "--exclude-platforms '[\"Ubuntu-18.04\"]'" # TODO: remove after postgres module update
Spec:
if: ${{ github.event_name == 'pull_request' || inputs.run_spec == 'true' }}
needs: Matrix
uses: ./.github/workflows/module_spec.yml
secrets: inherit
with:
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }}
ignore_dependency_check: true # TODO: remove after module updates
matrix: ${{ needs.Matrix.outputs.spec_matrix }}
Acceptance:
if: ${{ github.event_name == 'pull_request' || inputs.run_acceptance == 'true' }}
needs: [ Matrix, Spec ]
uses: ./.github/workflows/module_acceptance.yml
secrets: inherit
with:
debug: ${{ github.events.inputs.debug == 'true' || contains(github.event.pull_request.labels.*.name, 'debug') }}
matrix: ${{ needs.Matrix.outputs.acceptance_matrix }}
runs_on: ubuntu-20.04 # TODO: cgroupv1 containers do not provision on ubuntu-latest