Skip to content

Commit 7bfe6d0

Browse files
authored
Merge pull request #82 from systemli/Upgrade-to-Go-1.21
⬆️ Upgrade to Go 1.21
2 parents 98a2b9e + daf8ee2 commit 7bfe6d0

File tree

3 files changed

+4
-34
lines changed

3 files changed

+4
-34
lines changed

.github/workflows/integration.yaml

+2-22
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,7 @@ jobs:
1717
- name: Setup go
1818
uses: actions/setup-go@v5
1919
with:
20-
go-version: "1.17.x"
21-
22-
- name: Cache Go Dependencies
23-
uses: actions/cache@v4
24-
with:
25-
path: |
26-
~/.cache/go-build
27-
~/go/pkg/mod
28-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
29-
restore-keys: |
30-
${{ runner.os }}-go-
20+
go-version-file: "go.mod"
3121

3222
- name: Vet
3323
run: go vet
@@ -47,17 +37,7 @@ jobs:
4737
- name: Setup go
4838
uses: actions/setup-go@v5
4939
with:
50-
go-version: "1.17.x"
51-
52-
- name: Cache Go Dependencies
53-
uses: actions/cache@v4
54-
with:
55-
path: |
56-
~/.cache/go-build
57-
~/go/pkg/mod
58-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
59-
restore-keys: |
60-
${{ runner.os }}-go-
40+
go-version-file: "go.mod"
6141

6242
- name: Build
6343
run: go build ./...

.github/workflows/release.yaml

+1-11
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@ jobs:
1515
- name: Setup go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: '1.17.x'
19-
20-
- name: Cache Go Dependencies
21-
uses: actions/cache@v4
22-
with:
23-
path: |
24-
~/.cache/go-build
25-
~/go/pkg/mod
26-
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27-
restore-keys: |
28-
${{ runner.os }}-go-
18+
go-version-file: "go.mod"
2919

3020
- name: Login to Docker Hub
3121
uses: docker/login-action@v3.1.0

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/systemli/prometheus-etherpad-exporter
22

3-
go 1.17
3+
go 1.21
44

55
require (
66
github.com/google/go-cmp v0.6.0

0 commit comments

Comments
 (0)