@@ -80,13 +80,20 @@ jobs:
8080 run : npm run test:lint
8181
8282 test-standard :
83+ needs : [ 'build' ]
8384 name : test standard
8485 runs-on : ubuntu-latest
8586 timeout-minutes : 10
8687 steps :
8788 - name : Checkout
8889 # see https://github.com/actions/checkout
8990 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
9097 - name : Setup Node.js ${{ env.NODE_ACTIVE_LTS }}
9198 # see https://github.com/actions/setup-node
9299 uses : actions/setup-node@v4
@@ -99,6 +106,17 @@ jobs:
99106 echo "::group::install deps"
100107 npm i --ignore-scripts --loglevel=silly
101108 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 : |
102120 echo "::group::install docs-gen deps"
103121 npm --prefix tools/docs-gen i --ignore-scripts --loglevel=silly
104122 echo "::endgroup::"
@@ -110,15 +128,15 @@ jobs:
110128 - name : test
111129 run : >
112130 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
118134 if : ${{ failure() || success() }}
135+ # see https://github.com/DerLev/eslint-annotations
136+ uses : DerLev/eslint-annotations@v2
119137 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
122140 # see https://github.com/actions/upload-artifact
123141 uses : actions/upload-artifact@v4
124142 if : ${{ failure() }}
0 commit comments