Skip to content

Commit 0b63ee8

Browse files
committed
Add verify --tests to CI
For every version integration_tests CI capture the output and run verify --tests with the output generated. Run in the same job as the tests since they are needed to generate the file.
1 parent 1ede106 commit 0b63ee8

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/rust.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,19 @@ jobs:
160160
- name: "Run integration tests"
161161
env:
162162
BITCOIND_DOWNLOAD_DIR: ${{ github.workspace }}/.cache/corepc/bitcoind
163-
run: cd integration_test && cargo test --features=${{ matrix.version }},download
163+
run: |
164+
set -o pipefail
165+
test_output="${{ runner.temp }}/integration-test-${{ matrix.version }}.out"
166+
cd integration_test
167+
cargo test --features=${{ matrix.version }},download 2>&1 | tee "$test_output"
168+
- name: "Verify integration test coverage"
169+
run: |
170+
test_output="${{ runner.temp }}/integration-test-${{ matrix.version }}.out"
171+
verify_version="${{ matrix.version }}"
172+
verify_version="${verify_version#0_}"
173+
verify_version="${verify_version%%_*}"
174+
cd verify
175+
cargo run -- --tests "$test_output" "$verify_version"
164176
165177
# The jobs below copied from electrsd repo during import. Not too
166178
# much further thought given to it.

0 commit comments

Comments
 (0)