diff --git a/.github/workflows/atlas-tests.yml b/.github/workflows/atlas-tests.yml index cb9f4a968f..8cb6b6bcc9 100644 --- a/.github/workflows/atlas-tests.yml +++ b/.github/workflows/atlas-tests.yml @@ -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 diff --git a/.github/workflows/bitcoin-tests.yml b/.github/workflows/bitcoin-tests.yml index de1b16c26f..4acac1c8a0 100644 --- a/.github/workflows/bitcoin-tests.yml +++ b/.github/workflows/bitcoin-tests.yml @@ -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 diff --git a/.github/workflows/create-cache.yml b/.github/workflows/create-cache.yml index a67ecc8fa0..af88b02583 100644 --- a/.github/workflows/create-cache.yml +++ b/.github/workflows/create-cache.yml @@ -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: diff --git a/.github/workflows/epoch-tests.yml b/.github/workflows/epoch-tests.yml index b7d9bd6f06..a50e0d344d 100644 --- a/.github/workflows/epoch-tests.yml +++ b/.github/workflows/epoch-tests.yml @@ -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 diff --git a/.github/workflows/slow-tests.yml b/.github/workflows/slow-tests.yml index 38fb20ac3d..0c2cb62ea4 100644 --- a/.github/workflows/slow-tests.yml +++ b/.github/workflows/slow-tests.yml @@ -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 diff --git a/.github/workflows/stacks-core-tests.yml b/.github/workflows/stacks-core-tests.yml index af0b1a934c..1e883d3d96 100644 --- a/.github/workflows/stacks-core-tests.yml +++ b/.github/workflows/stacks-core-tests.yml @@ -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 +