-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update go.mod and go.sum Signed-off-by: Rui Chen <[email protected]> * feat: bump to use go1.21 Signed-off-by: Rui Chen <[email protected]> * chore: update go.sum for `go-integration-tests` module Signed-off-by: Rui Chen <[email protected]> * Remove codeql since it is not compatible with go1.21 Codeql was never useful so I remove it from the CI Signed-off-by: Thomas Poignant <[email protected]> * Simplify docker file when moving to go1.21 Signed-off-by: Thomas Poignant <[email protected]> * Bump nikunjy/rules to 1.5.0 Signed-off-by: Thomas Poignant <[email protected]> * style Signed-off-by: Thomas Poignant <[email protected]> --------- Signed-off-by: Rui Chen <[email protected]> Signed-off-by: Thomas Poignant <[email protected]> Co-authored-by: Thomas Poignant <[email protected]>
- Loading branch information
1 parent
1f18f93
commit 11b15c3
Showing
9 changed files
with
103 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- run: make vendor | ||
- run: make build | ||
Lint: | ||
|
@@ -32,7 +33,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- run: make lint | ||
|
||
Test: | ||
|
@@ -46,7 +48,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- run: make test | ||
|
||
Coverage: | ||
|
@@ -60,7 +63,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- run: make coverage | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
|
@@ -77,7 +81,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- run: make swagger | ||
- run: git diff --exit-code --quiet | ||
|
||
|
@@ -89,10 +94,11 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Go | ||
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
|
@@ -110,7 +116,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
|
@@ -135,7 +142,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Run benchmark | ||
run: make bench | tee bench-output.txt | ||
- name: Download previous benchmark data | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
- name: Set up Maven | ||
uses: stCarolas/[email protected] | ||
with: | ||
|
@@ -45,10 +46,11 @@ jobs: | |
- name: Fetch all tags | ||
run: git fetch --force --tags | ||
|
||
- name: Set up Go | ||
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
@@ -291,7 +293,8 @@ jobs: | |
- name: Setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.19' | ||
go-version-file: go.mod | ||
check-latest: true | ||
|
||
- name: Build jsonschema-generator | ||
working-directory: ./release/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
FROM golang:1.18 AS build | ||
FROM golang:1.21 | ||
|
||
ARG VERSION=127.0.0.1 | ||
|
||
WORKDIR /go/src/app | ||
COPY . /go/src/app | ||
|
||
RUN go build -o /go/src/app/examples/retriever_configmap/goff-test-configmap /go/src/app/examples/retriever_configmap/main.go | ||
|
||
FROM gcr.io/distroless/base-debian11:latest | ||
COPY --from=build /go/src/app/examples/retriever_configmap/goff-test-configmap / | ||
RUN go build -o /goff-test-configmap /go/src/app/examples/retriever_configmap/main.go | ||
CMD ["/goff-test-configmap"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.