Skip to content

Commit 73ae2ba

Browse files
committed
Fix CI and buid after binary split
1 parent 088ff91 commit 73ae2ba

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,10 @@ jobs:
8080
with:
8181
go-version-file: './go.mod'
8282
check-latest: true
83-
- name: Run Go tests
84-
run: go test -covermode atomic -coverprofile coverage.txt $(go list ./... | grep -v third_party/)
83+
- name: Run Go tests (AWS backend)
84+
run: go test -tags aws -covermode atomic -coverprofile coverage.txt $(go list -tags aws ./... | grep -v third_party/)
85+
- name: Run Go tests (GCP backend)
86+
run: go test -tags gcp $(go list -tags gcp ./... | grep -v third_party/)
8587
- name: Workaround buggy Codecov OIDC auth
8688
run: |
8789
# only set CODECOV_TOKEN if OIDC token is available
@@ -98,9 +100,12 @@ jobs:
98100
# When github.com/codecov/codecov-action/issues/1791 is fixed,
99101
# remove workaround step above and uncomment:
100102
# use_oidc: true
101-
- name: Run Go tests w/ `-race`
103+
- name: Run Go tests w/ `-race` (AWS backend)
102104
if: ${{ runner.os == 'Linux' }}
103-
run: go test -race $(go list ./... | grep -v third_party/)
105+
run: go test -tags aws -race $(go list -tags aws ./... | grep -v third_party/)
106+
- name: Run Go tests w/ `-race` (GCP backend)
107+
if: ${{ runner.os == 'Linux' }}
108+
run: go test -tags gcp -race $(go list -tags gcp ./... | grep -v third_party/)
104109

105110
e2e-tests:
106111
name: Run E2E tests

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ ldflags: ## Print ldflags
8787
@echo $(SERVER_LDFLAGS)
8888

8989
test: ## Run all tests
90-
go test ./...
90+
@echo "Running tests with AWS backend..."
91+
go test -tags aws ./...
92+
@echo "Running tests with GCP backend..."
93+
go test -tags gcp ./...
9194

9295
ko-local: ## Build container images locally using ko
9396
KO_DOCKER_REPO=ko.local LDFLAGS="$(SERVER_LDFLAGS)" GIT_HASH=$(GIT_HASH) GIT_VERSION=$(GIT_VERSION) \

0 commit comments

Comments
 (0)