Skip to content

Commit 244a464

Browse files
committed
integrate with github actions
1 parent 9ae97bf commit 244a464

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lints and Tests
2+
3+
on:
4+
- push
5+
6+
env:
7+
CARGO_TERM_COLOR: always
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Display rust version
16+
run: |
17+
rustc --version
18+
cargo clippy -- --version
19+
cargo fmt -- --version
20+
21+
- name: Build
22+
run: cargo build
23+
24+
- name: Lint
25+
run: cargo clippy --all-targets -- -D warnings
26+
27+
- name: Format
28+
run: cargo fmt -- --check

0 commit comments

Comments
 (0)