From daf8ee2f1468d3e46c1720326d448f60a96485b8 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 2 Apr 2024 12:19:13 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20to=20Go=201.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/integration.yaml | 24 ++---------------------- .github/workflows/release.yaml | 12 +----------- go.mod | 2 +- 3 files changed, 4 insertions(+), 34 deletions(-) diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index d9a26db..f293f73 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -17,17 +17,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: "1.17.x" - - - name: Cache Go Dependencies - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version-file: "go.mod" - name: Vet run: go vet @@ -47,17 +37,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: "1.17.x" - - - name: Cache Go Dependencies - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version-file: "go.mod" - name: Build run: go build ./... diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3630d78..fa93e84 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,17 +15,7 @@ jobs: - name: Setup go uses: actions/setup-go@v5 with: - go-version: '1.17.x' - - - name: Cache Go Dependencies - uses: actions/cache@v4 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- + go-version-file: "go.mod" - name: Login to Docker Hub uses: docker/login-action@v3.1.0 diff --git a/go.mod b/go.mod index d2eb415..c2a811c 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/systemli/prometheus-etherpad-exporter -go 1.17 +go 1.21 require ( github.com/google/go-cmp v0.6.0