File tree 1 file changed +26
-5
lines changed
1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
jobs :
16
16
build :
17
- name : build for ${{ matrix.target }}
17
+ name : build ${{ matrix.target }}
18
18
runs-on : " ubuntu-latest"
19
19
timeout-minutes : 30
20
20
strategy :
45
45
name : dist.${{ matrix.target }}
46
46
path : dist.${{ matrix.target }}
47
47
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 }})
51
70
runs-on : ${{ matrix.os }}
52
71
strategy :
53
72
fail-fast : false
84
103
name : dist.node
85
104
path : dist.node
86
105
- 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
You can’t perform that action at this time.
0 commit comments