mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
## Github workflow to run sbtc tests
|
|
|
|
name: Tests::SBTC
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
## env vars are transferred to composite action steps
|
|
env:
|
|
BITCOIND_TEST: 1
|
|
RUST_BACKTRACE: full
|
|
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 15
|
|
TEST_TIMEOUT: 30
|
|
|
|
concurrency:
|
|
group: sbtc-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:
|
|
# Bitcoin integration tests with code coverage
|
|
sbtc-tests:
|
|
name: SBTC Tests
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
## Continue with the test matrix even if we've had a failure
|
|
fail-fast: false
|
|
## Run a maximum of 32 concurrent tests from the test matrix
|
|
max-parallel: 32
|
|
matrix:
|
|
test-name:
|
|
- tests::neon_integrations::test_submit_and_observe_sbtc_ops
|
|
- tests::signer::test_stackerdb_dkg
|
|
- tests::stackerdb::test_stackerdb_event_observer
|
|
- tests::stackerdb::test_stackerdb_load_store
|
|
steps:
|
|
## Setup test environment
|
|
- name: Setup Test Environment
|
|
id: setup_tests
|
|
uses: stacks-network/actions/stacks-core/testenv@main
|
|
|
|
## Run test matrix using restored cache of archive file
|
|
## - Test will timeout after env.TEST_TIMEOUT minutes
|
|
- name: Run Tests
|
|
id: run_tests
|
|
timeout-minutes: ${{ fromJSON(env.TEST_TIMEOUT) }}
|
|
uses: stacks-network/actions/stacks-core/run-tests@main
|
|
with:
|
|
test-name: ${{ matrix.test-name }}
|
|
|
|
## Create and upload code coverage file
|
|
- name: Code Coverage
|
|
id: codecov
|
|
uses: stacks-network/actions/codecov@main
|
|
with:
|
|
test-name: ${{ matrix.test-name }}
|
|
|