summaryrefslogtreecommitdiff
path: root/.github/workflows/treefmt.yaml
blob: 2ea17e070909bb52868cb1ecc482ae1e5c2e11ec (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
name: Treefmt

on:
  pull_request:
    paths:
      - "**.lock"
      - "**.nix"
      - "**.ts"
      - "package.json"
      - "tsconfig.json"

      - ".github/workflows/ci.yaml"
  workflow_dispatch:

jobs:
  treefmt:
    name: Run treefmt

    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v16

      - name: Run treefmt
        run: |
          nix fmt -- --ci