Skip to content

Commit

Permalink
ci: add eslint to github code quality workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 17, 2024
1 parent 23ae012 commit 19e6a27
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Prettier Check
name: Code Quality Checks

on:
pull_request:
branches: [main, v3]

jobs:
prettier:
code_quality:
runs-on: ubuntu-latest

steps:
Expand All @@ -16,9 +16,15 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/prettier.yml') }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/workflows/code-quality.yml') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm ci

- name: Prettier Check
run: npx prettier --check .

- name: ESLint Check
run: npx eslint .

0 comments on commit 19e6a27

Please sign in to comment.