Skip to content

Commit

Permalink
Split eslint and stylelint into two different jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
hopperelec committed Nov 10, 2023
1 parent 3ceecaf commit b46473f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,20 @@ on:
pull_request:

jobs:
linting:
setup:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- run: npm ci
eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- run: npm ci
- name: eslint
run: npm run eslint
- name: stylelint
run: npm run stylelint
- run: npm run eslint
stylelint:
needs: setup
runs-on: ubuntu-latest
steps:
- run: npm run stylelint
2 changes: 1 addition & 1 deletion .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:

jobs:
format-check:
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit b46473f

Please sign in to comment.