-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stacks-signer-tests.yml to run stacks signer unit tests in CI
Signed-off-by: Jacinta Ferrant <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 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
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,41 @@ | ||
## Run Stacks Signer Unit Tests | ||
name: Tests::Stacks Signer Unit Tests | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
RUST_BACKTRACE: full | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
TEST_TIMEOUT: 30 | ||
|
||
concurrency: | ||
group: stacks-core-tests-${{ github.head_ref || github.ref || github.run_id }} | ||
# Only cancel in progress if this is for a PR | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the latest code | ||
- name: Checkout Latest Code | ||
uses: actions/checkout@v3 | ||
|
||
# Install Rust toolchain | ||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
||
# Run unit tests | ||
- name: Run Unit Tests | ||
run: cargo test -p stacks-signer -- --nocapture --test-threads 1 | ||
continue-on-error: true | ||
|
||
# Upload code coverage results | ||
- name: Code Coverage | ||
uses: stacks-network/actions/codecov@main | ||
with: | ||
test-name: stacks-signer-tests |
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