File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,23 @@ jobs:
119119 - name : make reports dir
120120 run : mkdir -p "$REPORTS_DIR"
121121 - name : test
122- run : npm run -- test:standard
122+ run : >
123+ npm run -- test:standard
124+ --format json
125+ --output-file "$PWD/$REPORTS_DIR/eslint.json"
126+ - name : Annotate Code
127+ # see https://github.com/DerLev/eslint-annotations
128+ uses : DerLev/eslint-annotations@v2
129+ with :
130+ eslint-report : ${{ env.REPORTS_DIR }}/eslint.json
131+ - name : artifact eslint result
132+ # see https://github.com/actions/upload-artifact
133+ uses : actions/upload-artifact@v4
134+ if : ${{ failure() }}
135+ with :
136+ name : ${{ env.STANDARD_REPORTS_ARTIFACT }}
137+ path : ${{ env.REPORTS_DIR }}
138+ if-no-files-found : error
123139
124140 test-node :
125141 needs : [ 'build' ]
You can’t perform that action at this time.
0 commit comments