Skip to content

Commit ff08bd0

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent ef2c3f3 commit ff08bd0

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

.github/workflows/nodejs.yml

+26-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414

1515
jobs:
1616
build:
17-
name: build for ${{ matrix.target }}
17+
name: build ${{ matrix.target }}
1818
runs-on: "ubuntu-latest"
1919
timeout-minutes: 30
2020
strategy:
@@ -45,9 +45,28 @@ jobs:
4545
name: dist.${{ matrix.target }}
4646
path: dist.${{ matrix.target }}
4747
if-no-files-found: error
48-
test:
49-
needs: [ build ]
50-
name: test (node${{ matrix.node-version }}, ${{ matrix.os }})
48+
test-standard:
49+
name: test standard
50+
runs-on: ubuntu-latest
51+
timeout-minutes: 30
52+
steps:
53+
- name: Checkout
54+
# see https://github.com/actions/checkout
55+
uses: actions/checkout@v3
56+
- name: Setup Node.js ${{ env.NODE_ACTIVE_LTS }}
57+
# see https://github.com/actions/setup-node
58+
uses: actions/setup-node@v3
59+
with:
60+
node-version: ${{ env.NODE_ACTIVE_LTS }}
61+
cache: "npm"
62+
cache-dependency-path: "**/package-lock.json"
63+
- name: setup project
64+
run: npm ci --ignore-scripts
65+
- name: test
66+
run: npm test:standard
67+
test-node:
68+
needs: [ 'build' ]
69+
name: test node (${{ matrix.node-version }}, ${{ matrix.os }})
5170
runs-on: ${{ matrix.os }}
5271
strategy:
5372
fail-fast: false
@@ -84,4 +103,6 @@ jobs:
84103
name: dist.node
85104
path: dist.node
86105
- name: test
87-
run: npm test
106+
run: npm test:node
107+
# test-web:
108+
# TODO via https://github.com/CycloneDX/cyclonedx-javascript-library/issues/51

0 commit comments

Comments
 (0)