Skip to content

Commit ffcc8b7

Browse files
committed
chore: adding CI stuff
1 parent b8f061f commit ffcc8b7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Install Nix
18+
uses: DeterminateSystems/nix-installer-action@main
19+
20+
- name: Setup Nix Cache
21+
uses: DeterminateSystems/magic-nix-cache-action@main
22+
23+
- name: Build project
24+
run: nix develop --command cargo build --target x86_64-unknown-linux-musl
25+
26+
- name: Run tests
27+
run: nix develop --command cargo test
28+
29+
- name: Check formatting
30+
run: nix develop --command cargo fmt -- --check
31+
32+
- name: Run clippy
33+
run: nix develop --command cargo clippy -- -D warnings

0 commit comments

Comments
 (0)