Skip to content

Commit e3e8d5a

Browse files
committed
ci: enable testnet integration suite
We don't want to hammer on public endpoints on every test run indefinitely, but given that we're in the midst of a significant refactor, having the new HTTPS-enabled integration tests running in CI will save developer attention by running them automatically.
1 parent 7d81d28 commit e3e8d5a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/rust.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,32 @@ jobs:
7979
# Build each crate separately, to validate that the feature-gating is working.
8080
# This is a lighter-weight version of `cargo check-all-features --workspace --release`.
8181
- run: ./deployments/scripts/check-crate-feature-sets
82+
83+
# Integration tests that run against the public testnet endpoints.
84+
# Temporarily enabling these in CI, to provide assurance during refactoring.
85+
testnet-integration:
86+
runs-on: buildjet-16vcpu-ubuntu-2204
87+
steps:
88+
- uses: actions/checkout@v4
89+
with:
90+
lfs: true
91+
92+
- name: install nix
93+
uses: nixbuild/nix-quick-install-action@v28
94+
95+
- name: setup nix cache
96+
uses: nix-community/cache-nix-action@v5
97+
with:
98+
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
99+
restore-prefixes-first-match: nix-${{ runner.os }}-
100+
backend: buildjet
101+
102+
- name: Load rust cache
103+
uses: astriaorg/buildjet-rust-cache@v2.5.1
104+
105+
# Confirm that the nix devshell is buildable and runs at all.
106+
- name: validate nix env
107+
run: nix develop --command echo hello
108+
109+
- name: run the testnet integration tests
110+
run: nix develop --command just integration-testnet

0 commit comments

Comments
 (0)