Fix quality check workflows
This commit is contained in:
parent
2d353e1845
commit
cbf33fb2e4
2 changed files with 40 additions and 12 deletions
38
.github/workflows/pr-suggestions.yml
vendored
Normal file
38
.github/workflows/pr-suggestions.yml
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Setup node environment
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
|
||||
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@d43938d6a379bc9a53c9c6d307e2d43bff0536be # v3.0.2
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
14
.github/workflows/quality.yml
vendored
14
.github/workflows/quality.yml
vendored
|
@ -7,10 +7,8 @@ concurrency:
|
|||
on:
|
||||
push:
|
||||
branches: [ master, release* ]
|
||||
pull_request_target:
|
||||
pull_request:
|
||||
branches: [ master, release* ]
|
||||
types:
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
run-escheck:
|
||||
|
@ -55,15 +53,7 @@ jobs:
|
|||
- name: Install Node.js dependencies
|
||||
run: npm ci --no-audit
|
||||
|
||||
|
||||
- name: Run eslint (changed)
|
||||
if: ${{ github.repository == 'jellyfin/jellyfin-web' }}
|
||||
uses: CatChen/eslint-suggestion-action@d43938d6a379bc9a53c9c6d307e2d43bff0536be # v3.0.2
|
||||
with:
|
||||
github-token: ${{ secrets.JF_BOT_TOKEN }}
|
||||
|
||||
- name: Run eslint (all)
|
||||
if: always()
|
||||
- name: Run eslint
|
||||
run: npx eslint --quiet "."
|
||||
|
||||
run-stylelint-css:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue