-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a new github actions which runs cargo-test in the `libs`-folder. Created a new rule check-all in the `Makefile` than can be used to run both integration and unit tests
- Loading branch information
1 parent
eafb7b4
commit 41415a4
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Rust Unit Test | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- synchronize | ||
- opened | ||
workflow_dispatch: | ||
merge_group: | ||
|
||
jobs: | ||
unit_test: | ||
name: Rust unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- uses: arduino/setup-protoc@v2 | ||
with: | ||
version: "23.2" # Fixed since we mount the path below | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: (cd libs; cargo test) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ check-rs: | |
|
||
clean-rs: | ||
cd libs; cargo clean | ||
|
||
check-self-gl-client: | ||
(cd libs/gl-client; cargo test) |