Skip to content

Commit 7883f50

Browse files
committed
Disallow skipping tx-sync tests in CI
Previously, we'd always skip tx-sync tests if the `BITCOIND_EXE`/`ELECTRS_EXE` environment variables would be unset. While this is especially fine for local testing, we still want to enforce tests failing if somehow the `bitcoind`/`electrs` downloading or caching in CI stops working. Here, we therefore add a `CI_ENV` variable that indicates we're indeed running in CI, and only skip if it's unset.
1 parent fc21640 commit 7883f50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
echo "ELECTRS_EXE=$( pwd )/bin/electrs-${{ runner.os }}-${{ runner.arch }}" >> "$GITHUB_ENV"
6767
- name: Run CI script
6868
shell: bash # Default on Winblows is powershell
69-
run: CI_MINIMIZE_DISK_USAGE=1 ./ci/ci-tests.sh
69+
run: CI_ENV=1 CI_MINIMIZE_DISK_USAGE=1 ./ci/ci-tests.sh
7070

7171
coverage:
7272
strategy:

ci/ci-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ cargo check --verbose --color always --features rpc-client,rest-client,tokio
4444
popd
4545

4646
if [[ "$HOST_PLATFORM" != *windows* ]]; then
47-
if [ -z "$BITCOIND_EXE" ] || [ -z "$ELECTRS_EXE" ]; then
47+
if [ -z "$CI_ENV" ] && [[ -z "$BITCOIND_EXE" || -z "$ELECTRS_EXE" ]]; then
4848
echo -e "\n\nSkipping testing Transaction Sync Clients due to BITCOIND_EXE or ELECTRS_EXE being unset."
4949
else
5050
echo -e "\n\nBuilding and testing Transaction Sync Clients with features"

0 commit comments

Comments
 (0)