Skip to content

Commit

Permalink
ci: improve CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 8, 2024
1 parent 9c85b79 commit 96e7772
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,12 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['javascript']
node-version: [18]
language: ['javascript-typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache-dir
run: |
echo "::set-output name=dir::$(npm config get cache)"
- name: Cache npm cache
uses: actions/cache@v3
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install latest npm
run: npm install --global npm@latest

- name: Install dependencies
run: npm ci

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down

0 comments on commit 96e7772

Please sign in to comment.