Skip to content

Commit 7fa9b93

Browse files
committed
ci: github: Propage test status
Signed-off-by: Philippe Coval <[email protected]>
1 parent 0c8dbf5 commit 7fa9b93

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on: # yamllint disable-line rule:truthy
1111
workflows: ["build"]
1212
types:
1313
- completed
14+
1415
jobs:
1516
test:
1617
env:
@@ -67,3 +68,17 @@ jobs:
6768
cd z-wave-stack-binaries/bin && file -E *_x86_REALTIME.elf && cd -
6869
export ZPC_ARGS="--log.level=d"
6970
./scripts/tests/z-wave-stack-binaries-test.sh
71+
72+
- name: Set custom status
73+
uses: actions/github-script@v7
74+
with:
75+
script: |
76+
await github.repos.createCommitStatus({
77+
owner: context.repo.owner,
78+
repo: context.repo.repo,
79+
sha: context.sha,
80+
state: 'success',
81+
context: 'My Custom Check',
82+
description: 'All tests passed!',
83+
target_url: 'https://example.com/results'
84+
})

0 commit comments

Comments
 (0)