Skip to content

Commit 56422ab

Browse files
committed
Add github workflow
1 parent 7496412 commit 56422ab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/test.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Rust Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install Rust toolchain
17+
uses: dtolnay/rust-toolchain@stable
18+
19+
- name: Run all checks
20+
run: |
21+
set -o pipefail
22+
EXIT_CODE=0
23+
cargo test --verbose || EXIT_CODE=$?
24+
cargo check || EXIT_CODE=$?
25+
cargo clippy -- -D warnings || EXIT_CODE=$?
26+
exit $EXIT_CODE

0 commit comments

Comments
 (0)