Update to README.md #64
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install Dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: TypeScript Compilation | |
run: pnpm run tsc | |
- name: Check Formatting | |
run: pnpm run format | |
- name: Run Linting | |
run: npm run lint | |
- name: Build | |
run: pnpm run build | |
security: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install Dependencies | |
run: npm install -g pnpm && pnpm install | |
- name: Run npm audit | |
run: pnpm audit || true # Don't fail the build, but report issues | |
# Initialize CodeQL | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: javascript, typescript | |
# Run CodeQL Analysis | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |