Skip to content

Commit 37c9f02

Browse files
committed
ci: add format checking job
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 97eee52 commit 37c9f02

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/format-check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 📄 Check formatting
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- release
7+
tags-ignore:
8+
- "*"
9+
pull_request:
10+
workflow_dispatch:
11+
12+
jobs:
13+
format-check:
14+
name: 📄 Check code formatting with "just fmt"
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: cachix/install-nix-action@v31
19+
with:
20+
nix_path: nixpkgs=channel:nixos-unstable
21+
- run: nix-shell -p just --run "just fmt --ci"

0 commit comments

Comments
 (0)