Skip to content

Commit 0e3bd81

Browse files
committed
fix docker and add git workflow
1 parent 7b9cfbe commit 0e3bd81

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
fmt:
14+
name: Format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Check formatting
19+
run: cargo fmt --all -- --check
20+
21+
clippy:
22+
name: Clippy
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: Swatinem/rust-cache@v2
27+
- name: Clippy
28+
run: cargo clippy --all-targets --all-features -- -D warnings
29+
30+
build:
31+
name: Build
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
- uses: Swatinem/rust-cache@v2
36+
- name: Build
37+
run: cargo build --all-targets
38+
39+
test:
40+
name: Test
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: Swatinem/rust-cache@v2
45+
- name: Run tests
46+
run: cargo test --all

0 commit comments

Comments
 (0)