Skip to content

Commit

Permalink
OPCT-181: Bump go to 1.19 (#55)
Browse files Browse the repository at this point in the history
Splitting the PR [1] to update Go to 1.19

[1]
#54
https://issues.redhat.com/browse/OPCT-181
  • Loading branch information
mtulio committed Apr 4, 2023
1 parent 4d3aff2 commit b387b17
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 218 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,23 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.19

- name: Verify bindata was generated
run: |
go install github.com/go-bindata/go-bindata/go-bindata@latest
set -xe
./hack/update-generated-bindata.sh
set +ex
git diff --exit-code
- name: Run unit tests
run: make test

- name: Run go vet
run: make vet

- name: Run static code analysis
uses: dominikh/staticcheck-action@v1.2.0
with:
version: "2022.1.1"
version: "2022.1.1"
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17
go-version: 1.19

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/redhat-openshift-ecosystem/provider-certification-tool

go 1.17
go 1.19

require (
github.com/openshift/api v0.0.0-20210910062324-a41d3573a3ba
Expand Down
211 changes: 0 additions & 211 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hack/go-imports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool:z" \
--workdir /go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool \
docker.io/golang:1.17 \
docker.io/golang:1.19 \
./hack/go-imports.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/go-staticcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool:z" \
--workdir /go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool \
docker.io/golang:1.17 \
docker.io/golang:1.19 \
./hack/go-staticcheck.sh "${@}"
fi
2 changes: 1 addition & 1 deletion hack/verify-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ else
--env IS_CONTAINER=TRUE \
--volume "${PWD}:/go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool:z" \
--workdir /go/src/github.com/redhat-openshift-ecosystem/provider-certification-tool \
docker.io/golang:1.17 \
docker.io/golang:1.19 \
./hack/verify-codegen.sh "${@}"
fi

0 comments on commit b387b17

Please sign in to comment.