We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4935911 commit a7bb231Copy full SHA for a7bb231
1 file changed
.github/workflows/ci.yml
@@ -0,0 +1,33 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ pull_request:
9
10
+jobs:
11
+ rust:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Checkout
16
+ uses: actions/checkout@v4
17
18
+ - name: Install stable toolchain
19
+ uses: dtolnay/rust-toolchain@stable
20
+ with:
21
+ components: rustfmt
22
23
+ - name: Cache cargo artifacts
24
+ uses: Swatinem/rust-cache@v2
25
26
+ - name: Check formatting
27
+ run: cargo fmt --all --check
28
29
+ - name: Build
30
+ run: cargo check --workspace --all-targets
31
32
+ - name: Test
33
+ run: cargo test --workspace --all-targets
0 commit comments