Skip to content

Commit 22f1de8

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent f107825 commit 22f1de8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/nodejs.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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' ]

0 commit comments

Comments
 (0)