Switch to go 1.20 (#668)

* Switch to go 1.20
* Fix golang version definition
* Upgrade golangci-lint to v1.51.2
This commit is contained in:
Dan Sosedoff 2023-03-31 19:48:14 -05:00 committed by GitHub
parent f94bc9a4dd
commit 4d32e3b2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ on:
env: env:
GO_VERSION: 1.19 GO_VERSION: "1.20"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -97,7 +97,7 @@ jobs:
- name: golangci-lint - name: golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3
with: with:
version: v1.50.1 version: v1.51.2
fmt: fmt:
name: fmt name: fmt

View File

@ -6,7 +6,7 @@ on:
- master - master
env: env:
GO_VERSION: 1.19 GO_VERSION: "1.20"
CGO_ENABLED: 0 CGO_ENABLED: 0
IMAGE_REPOSITORY: sosedoff/pgweb IMAGE_REPOSITORY: sosedoff/pgweb

View File

@ -6,7 +6,7 @@ on:
- "v*" - "v*"
env: env:
GO_VERSION: 1.19 GO_VERSION: "1.20"
CGO_ENABLED: 0 CGO_ENABLED: 0
DOCKER_REPOSITORY: sosedoff/pgweb DOCKER_REPOSITORY: sosedoff/pgweb
GHCR_REPOSITORY: sosedoff/pgweb GHCR_REPOSITORY: sosedoff/pgweb

View File

@ -1,7 +1,7 @@
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Builder Stage # Builder Stage
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
FROM golang:1.19-bullseye AS build FROM golang:1.20-bullseye AS build
WORKDIR /build WORKDIR /build

4
go.mod
View File

@ -1,8 +1,8 @@
module github.com/sosedoff/pgweb module github.com/sosedoff/pgweb
go 1.19 go 1.20
// +heroku goVersion go1.19 // +heroku goVersion go1.20
require ( require (
github.com/BurntSushi/toml v1.1.0 github.com/BurntSushi/toml v1.1.0