build: Change package manager #4
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: Checks | |
on: | |
push: | |
branches: ["main", "develop"] | |
pull_request: | |
branches: ["main", "develop"] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.18.x" | |
- name: Set Up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.15.0 | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run Biome | |
run: pnpm lint | |
test: | |
name: Test | |
needs: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set Up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.18.x" | |
- name: Set Up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.15.0 | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Run Tests | |
run: pnpm test | |
scan: | |
name: Scan | |
runs-on: ${{ github.event_name == 'push' && 'ubuntu-latest' || 'macos-latest' }} | |
permissions: | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: "javascript-typescript" | |
build-mode: "none" | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:javascript-typescript" |