From 381dd4de76e28ca7792dc1bab0ddd2e00265bd7a Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 2 Apr 2024 12:25:08 +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 cf965b2..435320f 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -16,17 +16,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 @@ -45,17 +35,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 163a879..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 d5f0912..a99e08e 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/systemli/prometheus-jitsi-meet-exporter -go 1.17 +go 1.21 require github.com/google/go-cmp v0.6.0