Skip to content

Commit abe582a

Browse files
Add CI workflows
1 parent 9d3e7d7 commit abe582a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
16+
- name: Check code
17+
run: cargo check
18+
- name: Run tests
19+
run: cargo test
20+
- name: Run rustfmt
21+
run: cargo fmt -- --check
22+
- name: Run clippy
23+
run: cargo clippy -- --deny warnings
24+
- name: Check documentation
25+
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps

0 commit comments

Comments
 (0)