2023-12-02 08:32:33 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
reviewdog:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2023-12-30 10:42:17 +01:00
|
|
|
node-version: 20
|
2023-12-02 08:32:33 +01:00
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
yarn install
|
|
|
|
- uses: reviewdog/action-setup@v1
|
|
|
|
- name: Run eslint
|
|
|
|
env:
|
|
|
|
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
|
|
|
|
run: |
|
|
|
|
yarn run lint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true
|