From 132f732ac678d783e0de220f14aec96b57c2df0d Mon Sep 17 00:00:00 2001 From: Jason Jackson Date: Tue, 23 Jul 2024 09:39:39 -0400 Subject: [PATCH] Update workflows to use go.mod version --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61898a2..ce5dcc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: 1.22 + go-version-file: go.mod - name: Run tests run: go test -v ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 060155e..567983f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,9 +17,9 @@ jobs: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: 1.22 + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 diff --git a/Dockerfile b/Dockerfile index 92d0bd7..a960294 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# Ensure this version tracks with go.mod and workflows +# Ensure this version tracks with go.mod FROM golang:1.22 as builder # Ensure go build env is correct diff --git a/go.mod b/go.mod index 79cb8fa..fb0d728 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/silinternational/awsops -// Ensure this version tracks with /Dockerfile and workflows +// Ensure this version tracks with /Dockerfile go 1.22 require (