Skip to content

Commit

Permalink
feat: bump go to 1.23 (#142)
Browse files Browse the repository at this point in the history
* feat: bump go to 1.23

* fix: ci config
  • Loading branch information
obalunenko authored Sep 5, 2024
1 parent cea9058 commit 780c572
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
matrix:
language: [ 'go' ]
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
max-parallel: 3
matrix:
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
name: Build
steps:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/tools/go.sum') }}
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
install-only: true

Expand All @@ -88,7 +88,7 @@ jobs:
max-parallel: 2
matrix:
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
name: Run Tests
steps:
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
max-parallel: 2
matrix:
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
name: Run linters
steps:
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
max-parallel: 1
matrix:
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
name: Quality reports
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
max-parallel: 1
matrix:
os: [ 'ubuntu-22.04' ]
go-version: [1.22.x]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
name: Release
steps:
Expand All @@ -29,7 +29,7 @@ jobs:
fetch-depth: 0

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
install-only: true

Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

release:
github:
owner: obalunenko
Expand All @@ -10,7 +12,7 @@ checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"

snapshot:
name_template: SNAPSHOT-{{ .Commit }}
version_template: SNAPSHOT-{{ .Commit }}

changelog:
sort: asc
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ VERSION ?= $(shell git describe --tags $(git rev-list --tags --max-count=1))
APP_NAME?=getenv
SHELL := env APP_NAME=$(APP_NAME) $(SHELL)

GOTOOLS_IMAGE_TAG?=v0.12.3
SHELL := env GOTOOLS_IMAGE_TAG=$(GOTOOLS_IMAGE_TAG) $(SHELL)

COMPOSE_TOOLS_FILE=deployments/docker-compose/go-tools-docker-compose.yml
COMPOSE_TOOLS_CMD_BASE=docker compose -f $(COMPOSE_TOOLS_FILE)
COMPOSE_TOOLS_CMD_UP=$(COMPOSE_TOOLS_CMD_BASE) up --exit-code-from
COMPOSE_TOOLS_CMD_PULL=$(COMPOSE_TOOLS_CMD_BASE) pull

GOVERSION:=1.22
GOVERSION:=1.23

TARGET_MAX_CHAR_NUM=20

Expand Down
2 changes: 1 addition & 1 deletion build/docker/go-tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM ghcr.io/obalunenko/go-tools:v1.4.4 AS builder
FROM ghcr.io/obalunenko/go-tools:v1.5.1 AS builder

CMD ["/bin/sh", "-c", ""]
2 changes: 0 additions & 2 deletions deployments/docker-compose/go-tools-docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
tools:
build:
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/obalunenko/getenv

go 1.22
go 1.23

require (
github.com/stretchr/testify v1.9.0
Expand Down

0 comments on commit 780c572

Please sign in to comment.