Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 2ea6341

Browse files
authored
Merge pull request #249 from nspcc-dev/246-drop-go-117-use-120-for-builds
Drop go 1.17 support
2 parents 1794e39 + bd7eb8b commit 2ea6341

File tree

8 files changed

+26
-190
lines changed

8 files changed

+26
-190
lines changed

.github/workflows/builds.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
- 'support/*'
8-
types: [opened, synchronize]
8+
types: [ opened, synchronize ]
99
paths-ignore:
1010
- '**/*.md'
1111

@@ -15,20 +15,15 @@ jobs:
1515
runs-on: ubuntu-20.04
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Setup Go
23-
uses: actions/setup-go@v2
23+
uses: actions/setup-go@v4
2424
with:
25-
go-version: 1.19
26-
27-
- name: Restore Go modules from cache
28-
uses: actions/cache@v2
29-
with:
30-
path: /home/runner/go/pkg/mod
31-
key: deps-${{ hashFiles('go.sum') }}
25+
cache: true
26+
go-version: '1.20'
3227

3328
- name: Update Go modules
3429
run: make dep
@@ -45,20 +40,15 @@ jobs:
4540
runs-on: ubuntu-20.04
4641

4742
steps:
48-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4944
with:
5045
fetch-depth: 0
5146

5247
- name: Set up Go
53-
uses: actions/setup-go@v2
54-
with:
55-
go-version: 1.19
56-
57-
- name: Restore Go modules from cache
58-
uses: actions/cache@v2
48+
uses: actions/setup-go@v4
5949
with:
60-
path: /home/runner/go/pkg/mod
61-
key: deps-${{ hashFiles('go.sum') }}
50+
cache: true
51+
go-version: '1.20'
6252

6353
- name: Update Go modules
6454
run: make dep

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v2
38+
uses: actions/checkout@v3
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/tests.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- master
77
- 'support/*'
8-
types: [opened, synchronize]
8+
types: [ opened, synchronize ]
99
paths-ignore:
1010
- '**/*.md'
1111

@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v3
1919
- name: golangci-lint
2020
uses: golangci/golangci-lint-action@v2
2121
with:
@@ -28,20 +28,15 @@ jobs:
2828
env:
2929
CGO_ENABLED: 1
3030
steps:
31-
- uses: actions/checkout@v2
31+
- uses: actions/checkout@v3
3232
with:
3333
fetch-depth: 0
3434

3535
- name: Set up Go
36-
uses: actions/setup-go@v2
36+
uses: actions/setup-go@v4
3737
with:
38-
go-version: 1.19
39-
40-
- name: Restore Go modules from cache
41-
uses: actions/cache@v2
42-
with:
43-
path: /home/runner/go/pkg/mod
44-
key: deps-${{ hashFiles('go.sum') }}
38+
cache: true
39+
go-version: '1.20'
4540

4641
- name: Update Go modules
4742
run: make dep
@@ -50,31 +45,31 @@ jobs:
5045
run: make cover
5146

5247
- name: Upload coverage results to Codecov
53-
uses: codecov/codecov-action@v1
48+
uses: codecov/codecov-action@v2
5449
with:
5550
fail_ci_if_error: false
56-
path_to_write_report: ./coverage.txt
51+
files: ./coverage.txt
5752
verbose: true
5853

5954
tests:
6055
name: Tests
6156
runs-on: ubuntu-20.04
6257
strategy:
6358
matrix:
64-
go_versions: [ '1.17', '1.18', '1.19' ]
59+
go_versions: [ '1.18', '1.19', '1.20' ]
6560
fail-fast: false
6661
steps:
67-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
6863
with:
6964
fetch-depth: 0
7065

7166
- name: Set up Go
72-
uses: actions/setup-go@v2
67+
uses: actions/setup-go@v4
7368
with:
7469
go-version: '${{ matrix.go_versions }}'
7570

7671
- name: Restore Go modules from cache
77-
uses: actions/cache@v2
72+
uses: actions/cache@v3
7873
with:
7974
path: /home/runner/go/pkg/mod
8075
key: deps-${{ hashFiles('go.sum') }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19-alpine as basebuilder
1+
FROM golang:1.20-alpine as basebuilder
22
RUN apk add --update make bash ca-certificates
33

44
FROM basebuilder as builder

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
REPO ?= $(shell go list -m)
44
VERSION ?= $(shell git describe --tags --match "v*" --dirty --always --abbrev=8 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")
5-
GO_VERSION ?= 1.19
5+
GO_VERSION ?= 1.20
66
LINT_VERSION ?= 1.49.0
77
BUILD ?= $(shell date -u --iso=seconds)
88

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/nspcc-dev/neofs-http-gw
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/fasthttp/router v1.4.1

go.sum

Lines changed: 0 additions & 148 deletions
Large diffs are not rendered by default.

integration_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,10 @@ func TestIntegration(t *testing.T) {
4444
rootCtx := context.Background()
4545
aioImage := "nspccdev/neofs-aio-testcontainer:"
4646
versions := []string{
47-
"0.27.5",
48-
"0.28.1",
4947
"0.29.0",
5048
"0.30.0",
5149
"0.32.0",
50+
"0.34.0",
5251
"latest",
5352
}
5453
key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb")

0 commit comments

Comments
 (0)