We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc431da commit 85f8330Copy full SHA for 85f8330
1 file changed
.github/workflows/format-check.yml
@@ -0,0 +1,26 @@
1
+name: 📄 Check formatting
2
+
3
+on:
4
+ push:
5
+ pull_request:
6
+ workflow_dispatch:
7
8
+jobs:
9
+ format-check:
10
+ name: 📄 Check code formatting
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: 🧰 Checkout code
14
+ uses: actions/checkout@v6
15
+ - name: ⚙️ Install Nix
16
+ uses: cachix/install-nix-action@v31
17
+ with:
18
+ nix_path: nixpkgs=channel:nixos-unstable
19
+ - name: 🔒 Cache dependencies
20
+ uses: cachix/cachix-action@v16
21
22
+ name: devenv
23
+ - name: 🔧 Install devenv.sh
24
+ run: nix profile add nixpkgs#devenv
25
+ - name: 🔨 Build the devenv shell and run formatting check
26
+ run: devenv shell "just format"
0 commit comments