Skip to content

Commit d174584

Browse files
authored
Update node.js.yml
1 parent 2a2f0f4 commit d174584

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/node.js.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
11
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: Node.js CI
4+
name: Example Tests CI
55

66
on:
77
workflow_dispatch:
88

99
jobs:
10-
build:
10+
test:
1111

1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- name: Use Node.js 20.6.0
15+
- name: Checkout the repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js version 20.9.0 (minumum supported)
1719
uses: actions/setup-node@v4
1820
with:
19-
node-version: 20.6.0
21+
node-version: 20.9.0
2022
cache: 'npm'
21-
- run: npm ci
22-
- run: npm test
23+
24+
- name: Install Node.js dependencies
25+
run: npm ci
26+
27+
- name: Run tests in the example directory
28+
run: npm test
2329
working-directory: ./example
30+
31+
- name: Report test results
32+
uses: dorny/[email protected]
33+
with:
34+
name: Example Tests
35+
path: './example/reports/result.xml'
36+
reporter: java-junit

0 commit comments

Comments
 (0)