File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,33 @@ jobs:
39
39
- name : npm test
40
40
run : npm test
41
41
42
+ - name : npm run tap-junit-report
43
+ run : npm run tap-junit-report || true
44
+
45
+ - name : upload artifact
46
+ uses : actions/upload-artifact@v4
47
+ if : success() || failure()
48
+ with :
49
+ name : ' qrcode-tests-report-nodejs_${{ matrix.node }}'
50
+ path : ' test-results.xml'
51
+ compression-level : 0
52
+
53
+ - name : test report
54
+ uses : dorny/test-reporter@eaa763f6ffc21c7a37837f56cd5f9737f27fc6c8 # 1.8.0
55
+ if : success() || failure()
56
+ with :
57
+ name : ' qrcode-tests-nodejs_${{ matrix.node }}'
58
+ path : ' test-results.xml'
59
+ reporter : jest-junit
60
+ fail-on-error : false
61
+
42
62
- name : npm pack
63
+ if : always()
43
64
run : npm pack
44
65
45
66
- name : upload artifact
46
67
uses : actions/upload-artifact@v4
47
68
with :
48
69
name : qrcode_nodejs_${{ matrix.node }}
49
70
path : ' *.tgz'
50
- compression-level : 0
71
+ compression-level : 0
Original file line number Diff line number Diff line change 31
31
"lint" : " standard" ,
32
32
"pretest" : " npm run lint" ,
33
33
"test" : " node --throw-deprecation test.js" ,
34
+ "tap-junit-report" : " tap replay -R junit --coverage-report=none --allow-empty-coverage --allow-incomplete-coverage 'test/**/*.test.js' > test-results.xml" ,
34
35
"build" : " rollup -c" ,
35
36
"prepublish" : " npm run build" ,
36
37
"browser" : " node examples/clientsideserver.js"
You can’t perform that action at this time.
0 commit comments