wiki/.github/workflows/lint.yml

55 lines
1.0 KiB
YAML

# Validate typescript files, links and markdown
#
# Configuration files:
# - typescript: tsconfig.json
# - links: scripts/linkValidator.js
# - makrdown: .markdownlint.jsonc
name: Lint
concurrency:
group: ${{ github.ref }}-lint
cancel-in-progress: true
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: npm run lint:code
links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: npm run lint:links
markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "npm"
- run: npm ci
- run: npm run lint:md