Whalebird-desktop-client-ma.../.github/workflows/reviewdog.yml

45 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-26 18:17:06 +02:00
name: reviewdog
on:
pull_request:
permissions:
pull-requests: write
2022-07-26 18:17:06 +02:00
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2022-07-27 17:27:21 +02:00
- uses: actions/setup-node@v3
2022-07-26 18:17:06 +02:00
with:
2022-11-26 09:56:19 +01:00
node-version: 18
2022-07-27 17:27:21 +02: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:eslint | reviewdog -f=eslint -reporter=github-pr-review -fail-on-error=true
2022-07-26 18:17:06 +02:00
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2022-07-27 17:27:21 +02:00
- uses: actions/setup-node@v3
2022-07-26 18:17:06 +02:00
with:
2022-11-26 09:56:19 +01:00
node-version: 18
2022-07-27 17:27:21 +02:00
- name: Install
run: |
yarn install
- uses: reviewdog/action-setup@v1
- name: Run stylelint
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }}
run: |
yarn run lint:stylelint --no-color | reviewdog -f=stylelint -reporter=github-pr-review -level=error -filter-mode=nofilter -fail-on-error=false