Skip to content

Commit

Permalink
Set up Go 1.18 for the subctl consuming test
Browse files Browse the repository at this point in the history
For tests relying on "local" builds, we need to set up Go explicitly
to match our requirements (1.18 or later now).

Since go mod download on its own doesn't deal with dependencies
through local replaces, we need to run go mod tidy to ensure all the
transitive dependencies are available.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and tpantelis committed Aug 16, 2022
1 parent 991f5ca commit d4eafa0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/subctl-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ jobs:
repository: submariner-io/shipyard
path: shipyard

- name: Set up Go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a
with:
go-version: '1.18'
check-latest: true

- name: Update the subctl build to use the current submariner-operator
run: |
cd subctl
go mod edit -replace=github.com/submariner-io/submariner-operator=../submariner-operator
go mod tidy
- name: Run Go subctl unit tests
run: make -C subctl LOCAL_BUILD=1 unit

0 comments on commit d4eafa0

Please sign in to comment.