Skip to content

Commit e101f37

Browse files
committed
Add GitHub actions
1 parent d934e40 commit e101f37

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
on: [push, pull_request]
2+
3+
name: CI
4+
5+
jobs:
6+
build_and_test:
7+
name: Check
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
profile: minimal
14+
toolchain: stable
15+
override: true
16+
components: rustfmt, clippy
17+
- uses: actions-rs/cargo@v1
18+
name: Build
19+
with:
20+
command: build
21+
args: --release --all-features
22+
- uses: actions-rs/cargo@v1
23+
name: Test
24+
with:
25+
command: test
26+
- uses: actions-rs/cargo@v1
27+
name: rustfmt
28+
with:
29+
command: fmt
30+
args: --all -- --check
31+
- uses: actions-rs/cargo@v1
32+
name: clippy
33+
with:
34+
command: clippy
35+
args: -- -D warnings

0 commit comments

Comments
 (0)