summaryrefslogtreecommitdiff
path: root/.github/workflows/treefmt.yaml
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-15 19:28:16 -0400
committerGitHub <[email protected]>2024-10-15 23:28:16 +0000
commit8b48cbd5010e3ce8c41406aafcd10b920a927102 (patch)
tree2402707e82a7afb4af39f37222afd0940f1422ff /.github/workflows/treefmt.yaml
parent08912b439bd61088dd849b9342a81341fa9e4a23 (diff)
tidy up (#328)
* nix: tidy up flake * ci: tidy up workflows * cleanup bindings
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