Skip to content

ci: Add GitHub Actions Workflows for CI/CD and Dependency Management … #7

ci: Add GitHub Actions Workflows for CI/CD and Dependency Management …

ci: Add GitHub Actions Workflows for CI/CD and Dependency Management … #7

Workflow file for this run

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