This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
feat: sync staging to main (#14) #60
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
name: "CodeQL" | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
analyse: | |
name: Analyse | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["javascript"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- name: Use Node.js (from .nvmrc) | |
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 | |
with: | |
node-version-file: ".nvmrc" | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build files | |
run: pnpm run build | |
- name: Setup CodeQL | |
uses: github/codeql-action/init@e949a1676c32f4c215780f7429eb9f00ff18b225 # v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Perform Analysis | |
uses: github/codeql-action/analyze@e949a1676c32f4c215780f7429eb9f00ff18b225 # v2 |