Skip to content

Commit

Permalink
ci: re-order code health and pre-commit workflow to run npm audit at end
Browse files Browse the repository at this point in the history
  • Loading branch information
nielm committed Sep 11, 2024
1 parent be9f62f commit ea6129a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/codehealth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
working-directory: cloudrun-malware-scanner/
run: npm install

- name: NPM Audit
working-directory: cloudrun-malware-scanner/
run: npm audit

- name: ESlint
working-directory: cloudrun-malware-scanner/
run: npm run eslint
Expand All @@ -42,3 +38,7 @@ jobs:
- name: Typescript checks
working-directory: cloudrun-malware-scanner/
run: npm run typecheck

- name: NPM Audit
working-directory: cloudrun-malware-scanner/
run: npm audit
2 changes: 1 addition & 1 deletion cloudrun-malware-scanner/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
echo "Running cloudrun-malware-scanner/.husky/pre-commit checks. Use -n/--no-verify to skip"

cd cloudrun-malware-scanner
npm audit
npm run eslint
npm run check-format
npm run typecheck
npm audit

0 comments on commit ea6129a

Please sign in to comment.