mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
42 lines
930 B
YAML
42 lines
930 B
YAML
name: reviewdog
|
|
|
|
on: [pull_request_target]
|
|
|
|
env:
|
|
NODE_VERSION: "22.x"
|
|
|
|
jobs:
|
|
eslint:
|
|
name: runner / eslint
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
checks: write
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
|
|
- name: Setup NodeJS
|
|
uses: actions/setup-node@v5
|
|
with:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- uses: reviewdog/action-eslint@v1.34.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
reporter: github-pr-review # Change reporter.
|
|
eslint_flags: './src'
|
|
fail_level: error
|