diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 442c2a16..5cb7f13c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version-file: go.mod - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 793d3c0d..9f732deb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version-file: go.mod - name: Run gofmt run: diff -u <(echo -n) <(gofmt -d -s .) @@ -37,7 +37,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version-file: go.mod - name: Run tests run: go test -coverprofile=coverage.txt -v -race ./... diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d30f9f0..3306c344 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version-file: go.mod - name: Set up gon run: brew install mitchellh/gon/gon