File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 4
4
---
5
5
6
6
name : test
7
+
8
+ # yamllint disable-line rule:line-length
7
9
run-name : " test: ${{ github.event.workflow_run.head_branch }}#${{ github.event.workflow_run.head_commit.id }}"
8
10
9
11
on : # yamllint disable-line rule:truthy
10
12
workflow_run :
11
13
workflows : ["build"]
12
14
types :
13
15
- completed
16
+
14
17
jobs :
15
18
test :
16
19
env :
57
60
&& date -u
58
61
59
62
- name : Run
63
+ id : run
60
64
run : |
61
65
set -x
62
66
export ZPC_RUN_MODE="docker"
67
71
cd z-wave-stack-binaries/bin && file -E *_x86_REALTIME.elf && cd -
68
72
export ZPC_ARGS="--log.level=d"
69
73
./scripts/tests/z-wave-stack-binaries-test.sh
74
+ continue-on-error : true
75
+
76
+ - name : Propagate run status to commit status
77
+ uses : actions/github-script@v7
78
+ if : always()
79
+ env :
80
+ status : ${{ steps.run.outcome }}
81
+ sha : ${{ github.event.workflow_run.head_commit.id }}
82
+ with :
83
+ script : |
84
+ await github.rest.repos.createCommitStatus({
85
+ owner: context.repo.owner,
86
+ repo: context.repo.repo,
87
+ sha: context.sha,
88
+ state: process.env.status
89
+ })
90
+ process.exit(process.env.status == 'success' ? 0 : 1);
You can’t perform that action at this time.
0 commit comments