Skip to content

Commit 74b5abf

Browse files
committed
Run enclave devnet tests in CI
1 parent 57e3a19 commit 74b5abf

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

espresso/scripts/run-tests-github-actions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ sudo systemctl start nitro-enclaves-allocator.service
2828

2929
echo "[*] Running tests in nix develop shell..."
3030

31-
nix develop --command bash -c "just compile-contracts-fast && just build-batcher-enclave-image && just espresso-enclave-tests"
31+
nix develop --command bash -c "just build-devnet && just build-batcher-enclave-image && just espresso-enclave-tests && just devnet-enclave-tests"

justfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ espresso-tests timeout=espresso_tests_timeout: compile-contracts
4343
espresso-enclave-tests:
4444
ESPRESSO_RUN_ENCLAVE_TESTS=true go test -timeout={{espresso_tests_timeout}} -p=1 -count=1 ./espresso/enclave-tests/...
4545

46+
devnet-enclave-tests:
47+
ESPRESSO_RUN_ENCLAVE_TESTS=true U_ID={{uid}} GID={{gid}} go test -timeout 30m -p 1 -count 1 -v -run 'TestEnclaveRestart' ./espresso/devnet-tests/...
48+
4649

4750
IMAGE_NAME := "ghcr.io/espressosystems/espresso-sequencer/espresso-dev-node:release-colorful-snake"
4851
remove-espresso-containers:

0 commit comments

Comments
 (0)