Skip to content

Commit

Permalink
*: Upgrade to Go 1.22
Browse files Browse the repository at this point in the history
Closes #136.

Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Aug 20, 2024
1 parent 22345ff commit 0c24cb5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
jobs:
build_bin:
name: Build binary
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
go_os: [ linux, darwin ]
Expand All @@ -49,7 +49,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: true
go-version: '1.22'
go-version: '1.23'

- name: Check version
run: if [[ $(make version) == *"dirty"* ]]; then exit 1; fi
Expand All @@ -76,7 +76,7 @@ jobs:
build_image:
needs: build_bin
name: Build Docker image
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/system-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: true
go-version: '1.22'
go-version: '1.23'
- run: go version

- name: Set up Python
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

cover:
name: Coverage
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +40,7 @@ jobs:
uses: actions/setup-go@v5
with:
cache: true
go-version: '1.22'
go-version: '1.23'

- name: Test and write coverage profile
run: make cover
Expand All @@ -56,10 +56,10 @@ jobs:

tests:
name: Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
strategy:
matrix:
go_versions: [ '1.21', '1.22' ] # The latest is used by Coverage already.
go_versions: [ '1.22', '1.23' ] # The latest is used by Coverage already.
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document outlines major changes between releases.
## [Unreleased]

### Changed
- Go 1.21+ is required to build now (#98)
- Go 1.22+ is required to build now (#98, #136)

### Updated
- github.com/nspcc-dev/neo-go dependency from v0.106.0 to v0.106.3 (#98)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22 as basebuilder
FROM golang:1.23 as basebuilder

RUN set -x \
&& apt-get update \
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/nspcc-dev/neofs-rest-gw

go 1.21
go 1.22

require (
github.com/getkin/kin-openapi v0.127.0
Expand Down

0 comments on commit 0c24cb5

Please sign in to comment.