-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (46 loc) · 1.14 KB
/
test.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
name: test
on:
push:
branches: ["**"]
pull_request:
workflow_dispatch:
inputs: # null for another event
skip:
type: boolean
default: false
permissions: {}
jobs:
test1:
runs-on: ubuntu-latest
steps:
- run: exit 0
- id: step1
run: exit 0
- id: step2
if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step1.outcome) }}
run: exit 1
- id: step3
if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step2.outcome) }}
run: exit 0
- if: ${{ success() || contains(fromJson('["success", "failure"]'),steps.step3.outcome) }}
run: exit 0
test2:
runs-on: ubuntu-latest
steps:
- run: exit 1
continue-on-error: true
- run: exit 1
continue-on-error: true
- run: exit 0
test3:
runs-on: ubuntu-latest
steps:
- id: step1
run: exit 0
continue-on-error: true
- id: step2
run: exit 0
continue-on-error: true
- name: 'Fail this job if any step has failed'
if: contains(steps.*.outcome, 'failure')
run: exit 1