Skip to content

Commit 85f8330

Browse files
committed
ci: check formatting
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent bc431da commit 85f8330

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/format-check.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)