This repository has been archived by the owner on Oct 17, 2024. It is now read-only.
chore(deps-dev): bump @types/node from 20.12.12 to 20.14.12 #2100
Workflow file for this run
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
on: pull_request | |
name: Pull Request Workflow | |
jobs: | |
runTests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: [14, 16, 18] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: npm cache | |
id: npm-cache | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Deps if no cache | |
if: steps.npm-cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: run build if cache | |
if: steps.npm-cache.outputs.cache-hit == 'true' | |
run: npm run build | |
- name: Use Node.js ${{ matrix.node_version }} | |
uses: actions/setup-node@v4.0.2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- name: Execute tests | |
run: npm run test | |
CodeQL-Build: | |
runs-on: ubuntu-latest | |
needs: runTests | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 5 | |
- run: git checkout HEAD^2 | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: javascript | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |