Skip to content

Commit

Permalink
dev: update Go to 1.22 (#3679)
Browse files Browse the repository at this point in the history
* update Go to 1.22

* update Go for node checks (uses gen cmds)
  • Loading branch information
mastercactapus authored Feb 13, 2024
1 parent 0727947 commit 9fe27d7
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Checkout repository
uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false
- uses: actions/checkout@v4
- name: golangci-lint
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/dockerfiles/build-env/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/golang:1.21.3-bullseye
FROM docker.io/library/golang:1.22.0-bullseye

RUN apt-get update && apt-get install -y \
apt-transport-https \
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/dockerfiles/goalert/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/goalert/build-env:go1.21.4-postgres13 AS build
FROM docker.io/goalert/build-env:go1.22.0-postgres13 AS build
COPY / /build/
WORKDIR /build
RUN make clean bin/build/goalert-linux-amd64
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/tasks/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ outputs:
- name: bin
image_resource:
type: registry-image
source: { repository: goalert/build-env, tag: go1.21.4-postgres13 }
source: { repository: goalert/build-env, tag: go1.22.0-postgres13 }
run:
path: sh
dir: goalert
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/tasks/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ outputs:
- name: bin
image_resource:
type: registry-image
source: { repository: goalert/build-env, tag: go1.21.4-postgres13 }
source: { repository: goalert/build-env, tag: go1.22.0-postgres13 }
run:
path: sh
dir: goalert
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/tasks/scripts/codecheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if [ "$PKG_JSON_VER" != "$DOCKERFILE_VER" ]; then
fi

# assert build-env versions are identical
BUILD_ENV_VER=go1.21.4-postgres13
BUILD_ENV_VER=go1.22.0-postgres13
for file in $(find devtools -name 'Dockerfile*'); do
if ! grep -q "goalert/build-env" "$file"; then
continue
Expand Down
2 changes: 1 addition & 1 deletion devtools/ci/tasks/test-smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ outputs:
- name: debug
image_resource:
type: registry-image
source: { repository: goalert/build-env, tag: go1.21.4-postgres13 }
source: { repository: goalert/build-env, tag: go1.22.0-postgres13 }
run:
path: sh
dir: goalert
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/target/goalert

go 1.21
go 1.22

require (
github.com/99designs/gqlgen v0.17.43
Expand Down

0 comments on commit 9fe27d7

Please sign in to comment.