mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
Merge pull request #4141 from stacks-network/ci/fix-develop-tests
use bitcoin 25.0 for tests
This commit is contained in:
4
.github/workflows/atlas-tests.yml
vendored
4
.github/workflows/atlas-tests.yml
vendored
@@ -36,7 +36,9 @@ jobs:
|
||||
- name: Setup Test Environment
|
||||
id: setup_tests
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
|
||||
with:
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
- name: Run Tests
|
||||
|
||||
6
.github/workflows/bitcoin-tests.yml
vendored
6
.github/workflows/bitcoin-tests.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
||||
test-name:
|
||||
- tests::bitcoin_regtest::bitcoind_integration_test
|
||||
- tests::integrations::integration_test_get_info
|
||||
- tests::neon_integrations::antientropy_integration_test ## forced failure
|
||||
- tests::neon_integrations::antientropy_integration_test
|
||||
- tests::neon_integrations::bad_microblock_pubkey
|
||||
- tests::neon_integrations::bitcoind_forking_test
|
||||
- tests::neon_integrations::bitcoind_integration_test
|
||||
@@ -74,7 +74,9 @@ jobs:
|
||||
- name: Setup Test Environment
|
||||
id: setup_tests
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
|
||||
with:
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
- name: Run Tests
|
||||
|
||||
1
.github/workflows/create-cache.yml
vendored
1
.github/workflows/create-cache.yml
vendored
@@ -44,6 +44,7 @@ jobs:
|
||||
uses: stacks-network/actions/stacks-core/cache/bitcoin@main
|
||||
with:
|
||||
action: save
|
||||
btc-version: "25.0"
|
||||
|
||||
## Cache nextest archives for tests
|
||||
nextest-archive:
|
||||
|
||||
4
.github/workflows/epoch-tests.yml
vendored
4
.github/workflows/epoch-tests.yml
vendored
@@ -59,7 +59,9 @@ jobs:
|
||||
- name: Setup Test Environment
|
||||
id: setup_tests
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
|
||||
with:
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
- name: Run Tests
|
||||
|
||||
4
.github/workflows/slow-tests.yml
vendored
4
.github/workflows/slow-tests.yml
vendored
@@ -37,7 +37,9 @@ jobs:
|
||||
- name: Setup Test Environment
|
||||
id: setup_tests
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
|
||||
with:
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
- name: Run Tests
|
||||
|
||||
43
.github/workflows/stacks-core-tests.yml
vendored
43
.github/workflows/stacks-core-tests.yml
vendored
@@ -37,6 +37,7 @@ jobs:
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
with:
|
||||
genesis: true
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
@@ -84,7 +85,9 @@ jobs:
|
||||
- name: Setup Test Environment
|
||||
id: setup_tests
|
||||
uses: stacks-network/actions/stacks-core/testenv@main
|
||||
|
||||
with:
|
||||
btc-version: "25.0"
|
||||
|
||||
## Run test matrix using restored cache of archive file
|
||||
## - Test will timeout after env.TEST_TIMEOUT minutes
|
||||
- name: Run Tests
|
||||
@@ -135,20 +138,23 @@ jobs:
|
||||
# Core contract tests
|
||||
core-contracts-clarinet-test:
|
||||
name: Core Contracts Test
|
||||
defaults:
|
||||
run:
|
||||
working-directory: "./contrib/core-contract-tests/"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
## Checkout the code
|
||||
- name: Checkout the latest code
|
||||
id: git_checkout
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
|
||||
## Use Clarinet to run contract unit-tests and create code coverage file
|
||||
- name: Execute core contract unit tests in Clarinet
|
||||
uses: actions/checkout@v3
|
||||
- name: Execute core contract unit tests with clarinet-sdk
|
||||
id: clarinet_unit_test
|
||||
uses: docker://hirosystems/clarinet:1.8.0
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
args: test --coverage --manifest-path=./contrib/core-contract-tests/Clarinet.toml
|
||||
|
||||
node-version: 18.x
|
||||
cache: "npm"
|
||||
cache-dependency-path: "./contrib/core-contract-tests/package-lock.json"
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
## Upload code coverage file
|
||||
- name: Code Coverage
|
||||
id: codecov
|
||||
@@ -156,4 +162,21 @@ jobs:
|
||||
with:
|
||||
test-name: ${{ matrix.test-name }}
|
||||
upload-only: true
|
||||
filename: ./coverage.lcov
|
||||
filename: ./lcov.info
|
||||
|
||||
# Core contract tests on Clarinet v1
|
||||
# Check for false positives/negatives
|
||||
# https://github.com/stacks-network/stacks-blockchain/pull/4031#pullrequestreview-1713341208
|
||||
core-contracts-clarinet-test-clarinet-v1:
|
||||
name: Core Contracts Test Clarinet V1
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout the latest code
|
||||
id: git_checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Execute core contract unit tests in Clarinet
|
||||
id: clarinet_unit_test_v1
|
||||
uses: docker://hirosystems/clarinet:1.7.1
|
||||
with:
|
||||
args: test --manifest-path=./contrib/core-contract-tests/Clarinet.toml contrib/core-contract-tests/tests/bns/name_register_test.ts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user