Skip to content

Commit 395c487

Browse files
committed
add workflow
1 parent 6a84389 commit 395c487

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Cargo Build & Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
11+
jobs:
12+
build_and_test:
13+
name: Rust project - latest
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
toolchain:
18+
- stable
19+
- nightly
20+
steps:
21+
- uses: actions/checkout@v4
22+
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
23+
- run: cargo build --verbose
24+
- run: cargo test --verbose

0 commit comments

Comments
 (0)