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