-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit test and build github workflows
- Loading branch information
Wout Feys
committed
Sep 19, 2024
1 parent
acdeb03
commit 49cdb97
Showing
2 changed files
with
52 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,26 @@ | ||
name: Rust Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Change this to your default branch if it's not 'main' | ||
pull_request: | ||
branches: | ||
- main # Change this to your default branch if it's not 'main' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable # You can specify a version like '1.60.0' if needed | ||
override: true | ||
|
||
- name: Build | ||
run: cargo build --verbose |
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,26 @@ | ||
name: Rust Unit Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Change this to your default branch if it's not 'main' | ||
pull_request: | ||
branches: | ||
- main # Change this to your default branch if it's not 'main' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable # You can specify a version like '1.60.0' or 'nightly' | ||
override: true | ||
|
||
- name: Run tests | ||
run: cargo test |