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-06-13 20:26:01 -07:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2023-11-02 07:36:21 -07:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
|
|
|
|
- name: Setup node environment
|
2024-07-10 00:34:42 -07:00
|
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
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' }}
|
2024-07-22 00:01:17 -07:00
|
|
|
uses: CatChen/eslint-suggestion-action@bc82950fa97bb3e46d9cca16a8bf2ad3e3c010fc # v4.1.5
|
2023-11-02 07:36:21 -07:00
|
|
|
with:
|
|
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|