Skip to content

Commit 6945b7b

Browse files
authored
ci(test-rust): add test rust ci/cd
1 parent a2975e8 commit 6945b7b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/test-rust.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Test Rust
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@v4
19+
20+
- name: Build
21+
run: cargo build --verbose
22+
23+
- name: Cache
24+
uses: actions/cache@v4
25+
with:
26+
path: |
27+
~/.cargo/registry
28+
~/.cargo/git
29+
target
30+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
31+
32+
- name: Run tests
33+
run: cargo test --verbose

0 commit comments

Comments
 (0)