mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-27 09:14:44 +01:00
e7a7d255b8
https://docs.github.com/en/rest/overview/permissions-required-for-github-apps?apiVersion=2022-11-28#pull-requests
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: reviewdog
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
eslint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- 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
|
|
|
|
stylelint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- 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
|