We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bdf29c commit 9bc8851Copy full SHA for 9bc8851
.github/workflows/ci.yml
@@ -0,0 +1,25 @@
1
+name: CI
2
+
3
+on:
4
+ push:
5
+ branches: ["**"]
6
+ pull_request:
7
8
+jobs:
9
+ lint_and_test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@v2
14
15
+ - name: Set up Rust
16
+ uses: dtolnay/rust-toolchain@stable
17
18
+ - name: Check formatting
19
+ run: cargo fmt --all -- --check
20
21
+ - name: Lint code
22
+ run: cargo clippy --all-features -- -D warnings
23
24
+ - name: Run tests
25
+ run: cargo test --all-features --tests
lefthook.yml
@@ -0,0 +1,8 @@
+pre-commit:
+ jobs:
+ - run: cargo fmt --all -- --check
+ - run: cargo clippy --all-features -- -D warnings
+pre-push:
+ - run: cargo test --all-features --tests
0 commit comments