mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: PR suggestions
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.id || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request_target:
|
|
branches: [ master, release* ]
|
|
types:
|
|
- synchronize
|
|
|
|
jobs:
|
|
run-eslint:
|
|
name: Run eslint suggestions
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup node environment
|
|
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
|
|
with:
|
|
node-version: 20
|
|
check-latest: true
|
|
cache: npm
|
|
|
|
- name: Install Node.js dependencies
|
|
run: npm ci --no-audit
|
|
|
|
- name: Run eslint
|
|
if: ${{ github.repository == 'jellyfin/jellyfin-web' }}
|
|
uses: CatChen/eslint-suggestion-action@b110ac684564c7b73e47cc223eb7a5266ec83fd3 # v4.1.1
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|