77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
name: Quality checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
format:
|
|
name: Format check
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup app
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Check formatting
|
|
run: npm run fmt:check
|
|
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup app
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint
|
|
|
|
typecheck:
|
|
name: Typecheck
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup app
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Run TypeScript typecheck
|
|
run: npm run typecheck -- --pretty false
|
|
|
|
knip:
|
|
name: Knip
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup app
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
install-command: npm ci --ignore-scripts
|
|
|
|
- name: Run Knip
|
|
run: npm run knip
|