mirror of
https://github.com/github/codeql-action.git
synced 2026-04-16 20:13:16 +00:00
Install dependencies in PR checks
This commit is contained in:
6
.github/workflows/pr-checks.yml
vendored
6
.github/workflows/pr-checks.yml
vendored
@@ -21,9 +21,12 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Lint
|
||||
id: lint
|
||||
run: npm run-script lint-ci
|
||||
run: npm run lint-ci
|
||||
|
||||
- name: Upload sarif
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
@@ -74,6 +77,7 @@ jobs:
|
||||
# Run any commands referenced in package.json using Bash, otherwise
|
||||
# we won't be able to find them on Windows.
|
||||
npm config set script-shell bash
|
||||
npm install
|
||||
npm test
|
||||
|
||||
check-node-version:
|
||||
|
||||
Reference in New Issue
Block a user