Skip to content

Commit 6d37ddb

Browse files
committed
add rust tests to release-rust
1 parent 1001fcd commit 6d37ddb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release-rust.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,31 @@ env:
1515
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1616

1717
jobs:
18+
test:
19+
name: Rust Port Tests
20+
runs-on: ubnutu-latest
21+
steps:
22+
- name: Check out the repo
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
- name: install metacall
27+
run: curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh -s -- --update --yes
28+
- name: Install Rust
29+
uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
32+
override: trueq
33+
- name: Set up Rust
34+
uses: actions-rs/toolchain@v1
35+
with:
36+
toolchain: stable
37+
override: true
38+
- name: Build and test the port
39+
working-directory: source/ports/rs_port
40+
run: |
41+
cargo build --verbose
42+
cargo test --verbose
1843
release:
1944
name: Release Rust Port
2045
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)