mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
67 lines
1.7 KiB
YAML
67 lines
1.7 KiB
YAML
name: Pull Request
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release*
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build 🏗️
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__package.yml
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
quality_checks:
|
|
name: Quality checks 👌🧪
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__quality_checks.yml
|
|
permissions: {}
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
codeql:
|
|
name: GitHub CodeQL 🔬
|
|
if: ${{ always() && !cancelled() }}
|
|
uses: ./.github/workflows/__codeql.yml
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
with:
|
|
commit: ${{ github.event.pull_request.head.sha }}
|
|
|
|
run-eslint:
|
|
name: Run eslint suggestions
|
|
if: ${{ github.repository == 'jellyfin/jellyfin-web' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Setup node environment
|
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
with:
|
|
node-version-file: .nvmrc
|
|
cache: npm
|
|
check-latest: true
|
|
|
|
- name: Install Node.js dependencies
|
|
run: npm ci --no-audit
|
|
|
|
- name: Run eslint
|
|
uses: CatChen/eslint-suggestion-action@efbe3942e76df120000621539d93ce7e0b54f7a7 # v4.1.27
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|