Skip to content

feat: added cool feature #8

feat: added cool feature

feat: added cool feature #8

Workflow file for this run

name: Linters
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
pull-requests: write
checks: write
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run prettier
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
./dev.sh npm ci
./dev.sh npm run format
reviewdog -f=diff -name=prettier -reporter=github-pr-check -fail-on-error=true
eslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- 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 -- -f checkstyle -o eslint.xml || true
cat eslint.xml | reviewdog -f=checkstyle -name=eslint -reporter=github-pr-check -fail-on-error=true