pokerogue/.github/workflows/linting.yml
Bertie690 3e2f5f1065
[Dev] Move jsconfig.json to repository root (#6861)
* [Dev] Move `jsconfig.json` to repository root

* Renamed command to say "typecheck js" instead of just scripts

* exclude everything in assets

* Update jsconfig.json

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* Update jsconfig.json

Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>

* Update jsconfig.json

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
Co-authored-by: Fabi <192151969+fabske0@users.noreply.github.com>
2025-12-23 15:02:10 -08:00

62 lines
1.5 KiB
YAML

name: Linting
on:
push:
branches:
- main
- beta
- release
- "hotfix*"
pull_request:
branches:
- main
- beta
- release
- "hotfix*"
merge_group:
types: [checks_requested]
workflow_dispatch:
jobs:
run-linters:
name: Run all linters
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v6
with:
submodules: "recursive"
- uses: ./.github/actions/setup-deps
# Lint files with Biome-Lint - https://biomejs.dev/linter/
- name: Lint with Biome
run: pnpm biome-ci
if: ${{ !cancelled() }}
# Validate dependencies with dependency-cruiser - https://github.com/sverweij/dependency-cruiser
- name: Run Dependency Cruiser
run: pnpm depcruise
if: ${{ !cancelled() }}
# Validate types with tsc - https://www.typescriptlang.org/docs/handbook/compiler-options.html#using-the-cli
- name: Run Typecheck (TS files)
run: pnpm typecheck
id: typecheck
if: ${{ !cancelled() }}
# Run tsc again on all JS files.
# Required in order to use separate rules for different types of files
- name: Run Typecheck (JS files)
run: pnpm typecheck:js
id: typecheck-js
if: ${{ !cancelled() }}
- name: Check for REUSE compliance
id: reuse-lint
uses: fsfe/reuse-action@v5
if: ${{ !cancelled() }}