-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The parameter SARIF_ESLINT_IGNORE_SUPPRESSED prevents that errors that are disabled inline still show up on GitHub.
- Loading branch information
1 parent
e271523
commit d5bc966
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
# More details at https://github.com/eslint/eslint | ||
# and https://eslint.org | ||
|
||
name: ESLint | ||
name: Continuous Integration | ||
|
||
on: | ||
push: | ||
|
@@ -19,8 +19,8 @@ on: | |
- cron: '29 3 * * 5' | ||
|
||
jobs: | ||
eslint: | ||
name: Run eslint scanning | ||
ci: | ||
name: Run code scanning and tests | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
@@ -30,16 +30,13 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install ESLint | ||
run: | | ||
npm install [email protected] | ||
npm install @microsoft/[email protected] | ||
npm install [email protected] | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run ESLint | ||
run: npx eslint . | ||
--config .eslintrc.js | ||
--ext .js,.jsx,.ts,.tsx | ||
env: | ||
SARIF_ESLINT_IGNORE_SUPPRESSED: true | ||
run: yarn lint | ||
--format @microsoft/eslint-formatter-sarif | ||
--output-file eslint-results.sarif | ||
continue-on-error: true | ||
|
@@ -49,3 +46,6 @@ jobs: | |
with: | ||
sarif_file: eslint-results.sarif | ||
wait-for-processing: true | ||
|
||
- name: Run Jest | ||
run: yarn test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters