Skip to content

Commit

Permalink
ci(github): annotate eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridermansb committed Sep 27, 2022
1 parent 8359e63 commit a7802dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ jobs:
- name: Lint
run: yarn lint

- name: Save Code Linting Report JSON
run: yarn lint:report
continue-on-error: true
- name: Annotate Code Linting Results
uses: ataylorme/eslint-annotate-action@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
report-json: "eslint_report.json"

- name: Test
run: yarn test --run --coverage

Expand All @@ -46,8 +55,5 @@ jobs:
with:
vite-config-path: './vite.config.ts'

- name: 'Post Coverage'
uses: romeovs/[email protected]

- name: Build
run: yarn build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ dist-ssr

coverage/
.vitest-result.json
eslint_report.json
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"dev": "tsc && vite build --watch",
"format": "prettier --write .",
"lint": "eslint . --ext .ts,.tsx",
"lint:report": "eslint . --ext .ts,.tsx --output-file eslint_report.json --format json",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"test:webstorm": "vitest --watch --reporter=dot --reporter=json --outputFile=.vitest-result.json",
Expand Down

0 comments on commit a7802dd

Please sign in to comment.