forked from ansible-collections/servicenow.itsm
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.06 KB
/
all_green_check.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
---
name: all_green
# concurrency:
# # group: ${{ github.head_ref }}
# cancel-in-progress: true
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main
- 'stable-*'
tags:
- '*'
push:
branches:
- 'tests-integration-*'
tags:
- '*'
jobs:
# linters:
# uses: ./.github/workflows/linters.yml # use the callable linters job to run tests
# sanity:
# uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests
# units:
# uses: ./.github/workflows/units.yml # use the callable units job to run tests
integrations:
uses: ./.github/workflows/integration.yml
all_green:
if: ${{ always() }}
needs:
# - linters
# - sanity
# - units
- integrations
runs-on: ubuntu-latest
steps:
- run: >-
python -c "assert set([
'${{ needs.linters.result }}',
'${{ needs.sanity.result }}',
'${{ needs.units.result }}'
]) == {'success'}"