Skip to content

Commit d918e33

Browse files
committed
Add CI.
1 parent b29fab6 commit d918e33

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/rust.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Test
22+
run: cargo test --verbose
23+
- name: Check formatting
24+
run: cargo fmt -- --check --verbose
25+
- name: Clippy
26+
run: cargo clippy --verbose -- -Dwarnings

0 commit comments

Comments
 (0)