-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.06 KB
/
test_require_status_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
49
50
51
52
53
54
55
56
57
58
59
60
61
name: test_require_status_check
on:
workflow_dispatch:
pull_request:
push:
jobs:
pre-requisite:
runs-on: ubuntu-latest
steps:
- name: Get Req
id: get-req
run: echo "get req"
build-one:
name: build one
runs-on: ubuntu-latest
needs: pre-requisite
steps:
- run: |
echo "build-one"
exit 1
build-two:
name: build two
runs-on: ubuntu-latest
needs: pre-requisite
steps:
- run: echo "build-two"
test:
name: Test initial
needs:
- pre-requisite
- build-two
runs-on: ubuntu-latest
steps:
- run: |
echo "Testing builds"
exit 1
test-more:
name: Test more
needs:
- pre-requisite
- build-two
runs-on: ubuntu-latest
steps:
- run: echo "Test more"
results:
runs-on: ubuntu-latest
if: ${{ always() && contains(needs.*.result, 'failure') == false}}
needs:
- build-one
- build-two
- test
- test-more
steps:
- run: echo "Workflows have succeeded!"