Skip to content

Commit ade2578

Browse files
committed
chore: use non-versioned path for test badge
1 parent 00b24fe commit ade2578

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

.github/workflows/test-report.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
2121
- id: parse_tests
2222
name: parse test results
23-
uses: QwerMike/xpath-action@v1
23+
uses: m-ringler/get-xpath@v3
2424
with:
25-
filename: "test-results.xml"
26-
expression: "//testsuites/@tests"
25+
xml-file: "test-results.xml"
26+
xpath: "//testsuites/@tests"
2727
- id: parse_failures
2828
name: parse test results
29-
uses: QwerMike/xpath-action@v1
29+
uses: m-ringler/get-xpath@v3
3030
with:
31-
filename: "test-results.xml"
32-
expression: "//testsuites/@failures"
31+
xml-file: "test-results.xml"
32+
xpath: "//testsuites/@failures"
3333
- name: Update test-results gist
3434
uses: schneegans/dynamic-badges-action@v1.7.0
3535
with:
@@ -38,7 +38,5 @@ jobs:
3838
filename: node-api-zig-test-badge.json
3939
label: "test"
4040
namedLogo: "zig"
41-
message: "${{steps.parse_tests.outputs.result}} tests / ${{steps.parse_failures.outputs.result}} failures"
41+
message: "${{steps.parse_tests.outputs.info}} tests / ${{steps.parse_failures.outputs.info}} failures"
4242
color: "#F7A41D"
43-
44-

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
The `node-api` Zig package provides [Node-API](https://nodejs.org/api/n-api.html) bindings for writing idiomatic Zig addons for V8-based runtimes like Node.JS or Bun.
33
Thanks to its conventions-based approach it bridges the gap seamlessly, with almost no Node-API specific code!
44

5-
![test-badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Ftypesafe%2F26882516c7ac38bf94a81784f966bd86%2Fraw%2F0dcb989b94e9bd71c2192e2e34b7979246340999%2Fnode-api-zig-test-badge.json)
5+
![test-badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fgist.githubusercontent.com%2Ftypesafe%2F26882516c7ac38bf94a81784f966bd86%2Fraw%2Fnode-api-zig-test-badge.json)
66

77

88
TODO:

0 commit comments

Comments
 (0)