jellyfin-web/.github/workflows/pr-suggestions.yml

39 lines
1.0 KiB
YAML
Raw Normal View History

2023-11-02 07:36:21 -07:00
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
2024-04-25 11:32:13 -07:00
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
2023-11-02 07:36:21 -07:00
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup node environment
2024-02-07 06:52:39 -07:00
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2023-11-02 07:36:21 -07:00
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@34e2a6c4193eba18a7a20710b5ae37850fc984c3 # v3.1.5
2023-11-02 07:36:21 -07:00
with:
github-token: ${{ secrets.GITHUB_TOKEN }}