ci: Add GitHub Actions Workflows for CI/CD and Dependency Management … #7
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
name: Code quality | |
on: | |
push: | |
pull_request: | |
branches: ["main"] | |
jobs: | |
quality: | |
name: Lint, Format & Audit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Run NPM Audit | |
run: npm audit --audit-level=high | |
- name: Format Docs | |
run: npm run prettier | |
- name: Setup Biome.js | |
uses: biomejs/setup-biome@v2 | |
with: | |
version: latest | |
- name: Lint, Format & Organize | |
run: npm run ci |