Skip to content

Commit d90d93e

Browse files
committed
ci: continue-on-error test
1 parent 1b63eab commit d90d93e

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

.github/workflows/test.yml

+23-6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: test
22
on:
33
push:
44
branches: ["**"]
5+
pull_request:
56
workflow_dispatch:
67
inputs: # null for another event
78
skip:
@@ -11,14 +12,30 @@ permissions: {}
1112

1213
jobs:
1314
test1:
14-
if: >
15-
true
1615
runs-on: ubuntu-latest
1716
steps:
18-
- run: |
17+
- run: exit 1
18+
continue-on-error: true
19+
- run: exit 1
20+
continue-on-error: true
21+
- run: exit 1
22+
continue-on-error: true
1923
test2:
20-
if: >-
21-
true
2224
runs-on: ubuntu-latest
2325
steps:
24-
- run: ''
26+
- run: exit 1
27+
continue-on-error: true
28+
- run: exit 1
29+
continue-on-error: true
30+
- run: exit 0
31+
test3:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- id: step1
35+
run: exit 0
36+
continue-on-error: true
37+
- id: step2
38+
run: exit 0
39+
continue-on-error: true
40+
- if: contains(steps.*.outcome, 'failure')
41+
run: exit 1

0 commit comments

Comments
 (0)