@@ -80,13 +80,20 @@ jobs:
80
80
run : npm run test:lint
81
81
82
82
test-standard :
83
+ needs : [ 'build' ]
83
84
name : test standard
84
85
runs-on : ubuntu-latest
85
86
timeout-minutes : 10
86
87
steps :
87
88
- name : Checkout
88
89
# see https://github.com/actions/checkout
89
90
uses : actions/checkout@v4
91
+ - name : fetch build artifact
92
+ # see https://github.com/actions/download-artifact
93
+ uses : actions/download-artifact@v4
94
+ with :
95
+ name : dist.d
96
+ path : dist.d
90
97
- name : Setup Node.js ${{ env.NODE_ACTIVE_LTS }}
91
98
# see https://github.com/actions/setup-node
92
99
uses : actions/setup-node@v4
@@ -99,6 +106,17 @@ jobs:
99
106
echo "::group::install deps"
100
107
npm i --ignore-scripts --loglevel=silly
101
108
echo "::endgroup::"
109
+ echo "::group::install example javascript"
110
+ npm --prefix examples/node/javascript i --ignore-scripts --loglevel=silly
111
+ echo "::endgroup::"
112
+ echo "::group::install example typescript cjs"
113
+ npm --prefix examples/node/typescript/example.cjs i --ignore-scripts --loglevel=silly
114
+ echo "::endgroup::"
115
+ echo "::group::install examples typescript mjs"
116
+ npm --prefix examples/node/typescript/example.mjs i --ignore-scripts --loglevel=silly
117
+ echo "::endgroup::"
118
+ - name : setup tools
119
+ run : |
102
120
echo "::group::install docs-gen deps"
103
121
npm --prefix tools/docs-gen i --ignore-scripts --loglevel=silly
104
122
echo "::endgroup::"
@@ -110,15 +128,15 @@ jobs:
110
128
- name : test
111
129
run : >
112
130
npm run -- test:standard
113
- --format checkstyle
114
- --output-file "$PWD/$REPORTS_DIR/eslint.xml"
115
- - name : Publish Checkstyle report
116
- # see https://github.com/Juuxel/publish-checkstyle-report
117
- uses : Juuxel/publish-checkstyle-report@v1
131
+ --format json
132
+ --output-file "$PWD/$REPORTS_DIR/eslint.json"
133
+ - name : Annotate Code
118
134
if : ${{ failure() || success() }}
135
+ # see https://github.com/DerLev/eslint-annotations
136
+ uses : DerLev/eslint-annotations@v2
119
137
with :
120
- reports : ${{ env.REPORTS_DIR }}/eslint.xml
121
- - name : artifact build result
138
+ eslint-report : ${{ env.REPORTS_DIR }}/eslint.json
139
+ - name : artifact eslint result
122
140
# see https://github.com/actions/upload-artifact
123
141
uses : actions/upload-artifact@v4
124
142
if : ${{ failure() }}
0 commit comments