Skip to content

Commit a1ee99e

Browse files
committed
Add github ci
1 parent 14041c3 commit a1ee99e

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on: push
3+
4+
jobs:
5+
checks:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- uses: actions/checkout@v6
10+
- uses: nixbuild/nix-quick-install-action@v34
11+
12+
- name: Run fmt check
13+
run: nix develop --command make fmt-check
14+
15+
- name: Run clippy checks
16+
run: nix develop --command make clippy
17+
18+
- name: Run tests
19+
run: nix develop --command make test

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.PHONY: clippy
22
clippy:
3-
cargo clippy --all-targets --all-features
3+
cargo clippy
44

55
.PHONY: test
66
test:
@@ -9,3 +9,7 @@ test:
99
.PHONY: fmt
1010
fmt:
1111
dprint fmt
12+
13+
.PHONY: fmt-check
14+
fmt-check:
15+
dprint check

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
openssl
2929
pkg-config
3030
dprint
31+
gnumake
3132
];
3233
};
3334
}

0 commit comments

Comments
 (0)