Skip to content

Commit

Permalink
ci: fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Oct 23, 2023
1 parent 1d7eee5 commit 6b075e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run prettier
run: |
./dev.sh npm ci
./dev.sh npm run format | reviewdog -f=diff -reporter=github-pr-check
./dev.sh npm run format
- uses: reviewdog/action-suggester@v1
with:
tool_name: prettier

eslint:
name: Eslint
Expand All @@ -23,6 +24,9 @@ jobs:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run eslint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
./dev.sh npm ci
./dev.sh npm run lint:check -- -f checkstyle | reviewdog -f=checkstyle -reporter=github-pr-check
./dev.sh npm run lint -- -f checkstyle -o eslint.xml
cat eslint.xml | reviewdog -f=checkstyle -name=eslint -reporter=github-pr-check

0 comments on commit 6b075e1

Please sign in to comment.