summaryrefslogtreecommitdiff
path: root/.github/workflows/pull_request.yml
blob: 77aae91ba67a3029dad1454dcd45096b8528b25c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Pull Request
on: [pull_request, workflow_dispatch]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v6

      - uses: pnpm/action-setup@v4
        with:
          version: 10.19.0

      - name: Set up Node.js
        uses: actions/setup-node@v6
        with:
          node-version: "24"

      - name: Install dependencies
        run: pnpm i

      - name: Run unit tests
        run: pnpm test:run

      - name: Check for TypeScript errors
        run: pnpm tsc --noEmit

      - name: Check for linter errors
        run: pnpm lint

      - name: Check for formatting errors
        run: pnpm format:check