File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ ldflags: ## Print ldflags
8787 @echo $(SERVER_LDFLAGS )
8888
8989test : # # 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
9295ko-local : # # Build container images locally using ko
9396 KO_DOCKER_REPO=ko.local LDFLAGS=" $( SERVER_LDFLAGS) " GIT_HASH=$(GIT_HASH ) GIT_VERSION=$(GIT_VERSION ) \
You can’t perform that action at this time.
0 commit comments