mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-10 23:25:52 +00:00
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
name: Lint, format & type check
|
|
on:
|
|
pull_request: {}
|
|
jobs:
|
|
lint:
|
|
name: Lint, format & type check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
- name: pnpm cache
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
|
with:
|
|
cache: "pnpm"
|
|
node-version-file: ".node-version"
|
|
- name: Install dependencies (layered)
|
|
# ignore-pnpmfile should never be commited. Make CI crash if it happened (`pnpmfileChecksum` is present)
|
|
run: "scripts/layered.sh --ignore-pnpmfile"
|
|
env:
|
|
PR_HEAD_REPO_OWNER: ${{ github.event.pull_request.head.repo.owner.login }}
|
|
- name: Formatting
|
|
run: "pnpm run format:check"
|
|
- name: i18n
|
|
run: "pnpm run i18n:check"
|
|
- name: Lint
|
|
run: "pnpm run lint:oxlint"
|
|
- name: Type check
|
|
run: "pnpm run lint:types"
|
|
- name: Dead code analysis
|
|
run: "pnpm run lint:knip"
|