Skip to content

Commit 7db7b48

Browse files
committed
Add ci
1 parent 3a0ff8b commit 7db7b48

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/ci.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rust
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+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Format
20+
run: cargo fmt --check --all
21+
- name: Build
22+
run: cargo build --all
23+
- name: Run tests
24+
run: cargo test --all
25+
- name: Clippy
26+
run: cargo clippy --all -- -D warnings

0 commit comments

Comments
 (0)