Skip to content

Commit

Permalink
download the files ahead of time
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Feb 9, 2023
1 parent 0169a08 commit 33263ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ jobs:
- name: Build
run: go build -v ./...

# Makes sure the binaries for the eth2network are avail for all other tests
- name: Download eth2network binaries
run: go test ./... -run TestEnsureBinariesAreAvail -count=1

- name: Test
run: go test --failfast -v ./... -count=1
env:
USE_GETH_BINARY: true

- name: Store simulation logs
uses: actions/upload-artifact@v3
Expand Down
5 changes: 5 additions & 0 deletions integration/eth2network/eth2_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const (
_numTestNodes = 1
)

func TestEnsureBinariesAreAvail(t *testing.T) {
_, err := EnsureBinariesExist()
assert.Nil(t, err)
}

func TestStartEth2Network(t *testing.T) {
binDir, err := EnsureBinariesExist()
assert.Nil(t, err)
Expand Down

0 comments on commit 33263ac

Please sign in to comment.