add CI for rust test status #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Test Workflow | |
on: | |
push: | |
paths: | |
- 'rs/**' | |
pull_request: | |
paths: | |
- 'rs/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Change directory to rs | |
run: cd rs | |
- name: Run tests | |
run: cargo test |