diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index a0326ae..02f05af 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -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: @@ -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