Skip to content

Commit ad88424

Browse files
authored
Merge pull request #4141 from stacks-network/ci/fix-develop-tests
use bitcoin 25.0 for tests
2 parents a7e9237 + 2c501b7 commit ad88424

File tree

6 files changed

+47
-15
lines changed

6 files changed

+47
-15
lines changed

.github/workflows/atlas-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
- name: Setup Test Environment
3737
id: setup_tests
3838
uses: stacks-network/actions/stacks-core/testenv@main
39-
39+
with:
40+
btc-version: "25.0"
41+
4042
## Run test matrix using restored cache of archive file
4143
## - Test will timeout after env.TEST_TIMEOUT minutes
4244
- name: Run Tests

.github/workflows/bitcoin-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
test-name:
3232
- tests::bitcoin_regtest::bitcoind_integration_test
3333
- tests::integrations::integration_test_get_info
34-
- tests::neon_integrations::antientropy_integration_test ## forced failure
34+
- tests::neon_integrations::antientropy_integration_test
3535
- tests::neon_integrations::bad_microblock_pubkey
3636
- tests::neon_integrations::bitcoind_forking_test
3737
- tests::neon_integrations::bitcoind_integration_test
@@ -74,7 +74,9 @@ jobs:
7474
- name: Setup Test Environment
7575
id: setup_tests
7676
uses: stacks-network/actions/stacks-core/testenv@main
77-
77+
with:
78+
btc-version: "25.0"
79+
7880
## Run test matrix using restored cache of archive file
7981
## - Test will timeout after env.TEST_TIMEOUT minutes
8082
- name: Run Tests

.github/workflows/create-cache.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
uses: stacks-network/actions/stacks-core/cache/bitcoin@main
4545
with:
4646
action: save
47+
btc-version: "25.0"
4748

4849
## Cache nextest archives for tests
4950
nextest-archive:

.github/workflows/epoch-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ jobs:
5959
- name: Setup Test Environment
6060
id: setup_tests
6161
uses: stacks-network/actions/stacks-core/testenv@main
62-
62+
with:
63+
btc-version: "25.0"
64+
6365
## Run test matrix using restored cache of archive file
6466
## - Test will timeout after env.TEST_TIMEOUT minutes
6567
- name: Run Tests

.github/workflows/slow-tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
- name: Setup Test Environment
3838
id: setup_tests
3939
uses: stacks-network/actions/stacks-core/testenv@main
40-
40+
with:
41+
btc-version: "25.0"
42+
4143
## Run test matrix using restored cache of archive file
4244
## - Test will timeout after env.TEST_TIMEOUT minutes
4345
- name: Run Tests

.github/workflows/stacks-core-tests.yml

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
uses: stacks-network/actions/stacks-core/testenv@main
3838
with:
3939
genesis: true
40+
btc-version: "25.0"
4041

4142
## Run test matrix using restored cache of archive file
4243
## - Test will timeout after env.TEST_TIMEOUT minutes
@@ -84,7 +85,9 @@ jobs:
8485
- name: Setup Test Environment
8586
id: setup_tests
8687
uses: stacks-network/actions/stacks-core/testenv@main
87-
88+
with:
89+
btc-version: "25.0"
90+
8891
## Run test matrix using restored cache of archive file
8992
## - Test will timeout after env.TEST_TIMEOUT minutes
9093
- name: Run Tests
@@ -135,25 +138,45 @@ jobs:
135138
# Core contract tests
136139
core-contracts-clarinet-test:
137140
name: Core Contracts Test
141+
defaults:
142+
run:
143+
working-directory: "./contrib/core-contract-tests/"
138144
runs-on: ubuntu-latest
139145
steps:
140-
## Checkout the code
141146
- name: Checkout the latest code
142147
id: git_checkout
143-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
144-
145-
## Use Clarinet to run contract unit-tests and create code coverage file
146-
- name: Execute core contract unit tests in Clarinet
148+
uses: actions/checkout@v3
149+
- name: Execute core contract unit tests with clarinet-sdk
147150
id: clarinet_unit_test
148-
uses: docker://hirosystems/clarinet:1.8.0
151+
uses: actions/setup-node@v3
149152
with:
150-
args: test --coverage --manifest-path=./contrib/core-contract-tests/Clarinet.toml
151-
153+
node-version: 18.x
154+
cache: "npm"
155+
cache-dependency-path: "./contrib/core-contract-tests/package-lock.json"
156+
- run: npm ci
157+
- run: npm test
152158
## Upload code coverage file
153159
- name: Code Coverage
154160
id: codecov
155161
uses: stacks-network/actions/codecov@main
156162
with:
157163
test-name: ${{ matrix.test-name }}
158164
upload-only: true
159-
filename: ./coverage.lcov
165+
filename: ./lcov.info
166+
167+
# Core contract tests on Clarinet v1
168+
# Check for false positives/negatives
169+
# https://github.com/stacks-network/stacks-blockchain/pull/4031#pullrequestreview-1713341208
170+
core-contracts-clarinet-test-clarinet-v1:
171+
name: Core Contracts Test Clarinet V1
172+
runs-on: ubuntu-latest
173+
steps:
174+
- name: Checkout the latest code
175+
id: git_checkout
176+
uses: actions/checkout@v3
177+
- name: Execute core contract unit tests in Clarinet
178+
id: clarinet_unit_test_v1
179+
uses: docker://hirosystems/clarinet:1.7.1
180+
with:
181+
args: test --manifest-path=./contrib/core-contract-tests/Clarinet.toml contrib/core-contract-tests/tests/bns/name_register_test.ts
182+

0 commit comments

Comments
 (0)