Skip to content

Commit b5b25eb

Browse files
authored
[rust] Execute Rust tests in CI (#11541)
* [rust] Execute Rust tests in CI * [rust] Remove trunk branchs * [rust] Add workflow_dispatch for manual trigger
1 parent 937cbaa commit b5b25eb

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/ci-rust.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'CI - Rust'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
pull_request:
7+
paths:
8+
- 'rust/**'
9+
push:
10+
paths:
11+
- 'rust/**'
12+
13+
jobs:
14+
build:
15+
strategy:
16+
matrix:
17+
os: [ ubuntu-latest, windows-latest, macos-latest ]
18+
rust: [ stable ]
19+
runs-on: ${{ matrix.os }}
20+
env:
21+
RUST_BACKTRACE: 1
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v3
25+
- name: Install Rust toolchain
26+
uses: actions-rs/toolchain@v1
27+
with:
28+
toolchain: ${{ matrix.rust }}
29+
- name: Run tests
30+
run: |
31+
cd rust
32+
cargo build
33+
cargo test -- --nocapture

0 commit comments

Comments
 (0)