-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup to handle workflow checking if pre-commit succeeds
- Loading branch information
1 parent
84aa2a9
commit 1ef79c4
Showing
1 changed file
with
6 additions
and
13 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 |
---|---|---|
|
@@ -24,27 +24,20 @@ env: # environment variables (available in any part of the action) | |
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: trailing-whitespace js/tintib.js | ||
eslint: | ||
name: Run eslint scanning | ||
runs-on: ubuntu-latest | ||
#runs-on: self-hosted | ||
permissions: | ||
contents: read | ||
security-events: write | ||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
steps: | ||
- name: Checkout code | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: trailing-whitespace | ||
- name: Install ESLint | ||
run: | | ||
if: success() || failure() | ||
run: | ||
npm install [email protected] | ||
npm install eslint-plugin-jest@^28.8.3 | ||
npm install @microsoft/[email protected] | ||
|