Skip to content

Commit b75944e

Browse files
committed
ci: annotate lint results
1 parent 8ecf8de commit b75944e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ name: Docs CI
22

33
on:
44
push:
5-
branches: [ main, docs/ui ]
5+
branches: [main, docs/ui]
66
pull_request:
7-
branches: [ main, docs/ui ]
7+
branches: [main, docs/ui]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
steps:
@@ -22,4 +21,11 @@ jobs:
2221
- run: npm run lint --if-present
2322
- run: npm run build --if-present
2423
env:
25-
NODE_OPTIONS: "--max_old_space_size=4096"
24+
NODE_OPTIONS: '--max_old_space_size=4096'
25+
26+
# re-run lint:text with junit output for github annotations
27+
- run: npm run lint:text -- --format junit --output-file lint-report.xml
28+
- uses: mikepenz/action-junit-report@v3
29+
if: always()
30+
with:
31+
report_paths: 'lint-report.xml'

0 commit comments

Comments
 (0)