0
0
mirror of https://github.com/jellyfin/jellyfin.org.git synced 2025-05-11 11:55:21 +00:00
Files
jellyfin.org/.github/workflows/lint.yml
renovate[bot] 3bd21c5597 Update actions/setup-node action to v4.4.0 (#1364)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-14 15:00:21 -04:00

41 lines
1.1 KiB
YAML

name: lint
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
eslint:
name: Lint TypeScript/JavaScript
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
check-latest: true
cache: npm
- name: Install Node.js dependencies
run: npm ci --no-audit
- name: Run eslint
run: npm run lint
lint:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up problem matcher
uses: xt0rted/markdownlint-problem-matcher@1a5fabfb577370cfdf5af944d418e4be3ea06f27 # v3.0.0
- name: Run markdownlint
run: npx --package markdownlint-cli markdownlint '**/*.md' --ignore node_modules