Skip to content

Commit 70691c6

Browse files
authored
ci: add github workflow
1 parent 2d4f6a1 commit 70691c6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/rust.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
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: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose
23+
- name: Run clippy
24+
run: |
25+
cargo clean -p tagname
26+
cargo clippy
27+
- name: Check formatting
28+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)