Skip to content

Commit

Permalink
Cleanup to handle workflow checking if pre-commit succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
truedat101 committed Sep 22, 2024
1 parent 84aa2a9 commit 1ef79c4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1ef79c4

Please sign in to comment.