Skip to content

Commit f4d9202

Browse files
committed
fix: create Clarinet v1 manifest
One of our CI jobs uses Clarinet v1, which ran tests "internally", to run a single contract test. This version of Clarinet is quite old, and it doesn't support epochs newer than 2.4. To fix this, I've created a manifest `Clarinet-v1.toml`, which is used for just running this test.
1 parent 7575db8 commit f4d9202

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
id: clarinet_unit_test_v1
131131
uses: docker://hirosystems/clarinet:1.7.1
132132
with:
133-
args: test --manifest-path=./contrib/core-contract-tests/Clarinet.toml contrib/core-contract-tests/tests/bns/name_register_test.ts
133+
args: test --manifest-path=./contrib/core-contract-tests/Clarinet-v1.toml contrib/core-contract-tests/tests/bns/name_register_test.ts
134134

135135
check-tests:
136136
name: Check Tests
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
[project]
3+
name = "core-contracts"
4+
5+
[repl]
6+
costs_version = 1
7+
8+
[contracts.bns]
9+
path = "../../stackslib/src/chainstate/stacks/boot/bns.clar"
10+
depends_on = []
11+
epoch = 2.4
12+
13+
[contracts.signers]
14+
path = "../../stackslib/src/chainstate/stacks/boot/signers.clar"
15+
depends_on = []
16+
clarity = 2
17+
epoch = 2.4
18+
19+
[contracts.signers-voting]
20+
path = "../../stackslib/src/chainstate/stacks/boot/signers-voting.clar"
21+
depends_on = []
22+
clarity = 2
23+
epoch = 2.4
24+
25+
[contracts.pox-4]
26+
path = "../../stackslib/src/chainstate/stacks/boot/pox-4.clar"
27+
clarity_version = 2
28+
epoch = 2.4
29+
depends_on = ["pox-mainnet"]
30+
31+
[contracts.pox-mainnet]
32+
path = "../../stackslib/src/chainstate/stacks/boot/pox-mainnet.clar"
33+
clarity_version = 2
34+
epoch = 2.4
35+
depends_on = []
36+
37+
[contracts.bns_test]
38+
path = "./tests/bns_test.clar"
39+
clarity_version = 2
40+
epoch = 2.4
41+
42+
[contracts.pox_4_test]
43+
path = "./tests/pox_4_test.clar"
44+
clarity_version = 2
45+
epoch = 2.4

0 commit comments

Comments
 (0)