Skip to content

Commit

Permalink
ci: refact Code Quality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
supitsdu committed Sep 2, 2024
1 parent ebbc4d3 commit 60128e4
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Code quality
name: Code Quality

on:
push:
pull_request:
branches: ["main"]
on: [pull_request]

jobs:
quality:
name: Lint, Format & Audit
name: Lint, Format & Organize

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
node-version: [22.x]

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: npm ci

- name: Cache node modules
uses: actions/cache@v3
with:
Expand All @@ -27,19 +27,13 @@ jobs:
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
- name: Run linting
run: npm run ci

- name: Run docs formating
run: npm run format

0 comments on commit 60128e4

Please sign in to comment.