summaryrefslogtreecommitdiff
path: root/.github/workflows/treefmt.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/treefmt.yaml')
-rw-r--r--.github/workflows/treefmt.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/treefmt.yaml b/.github/workflows/treefmt.yaml
new file mode 100644
index 0000000..1321488
--- /dev/null
+++ b/.github/workflows/treefmt.yaml
@@ -0,0 +1,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@v14
+
+ - name: Run treefmt
+ run: |
+ nix fmt -- --ci