Skip to content

Commit a7bb231

Browse files
committed
Add super simple CI
1 parent 4935911 commit a7bb231

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.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:
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

Comments
 (0)