From 5090e02fd4240c610271f60f73f885fe0c69d37c Mon Sep 17 00:00:00 2001 From: Simon Whitaker Date: Sat, 5 Aug 2023 14:41:44 +0100 Subject: [PATCH] ci: use go-version-file in setup-go step (#59) * ci: use go-version-file in setup-go step * ci: rename build step * cd: use go-version-file in setup-go --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5694a34..6316681 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,7 +23,7 @@ jobs: - run: git fetch --force --tags - uses: actions/setup-go@v4 with: - go-version: stable + go-version-file: go.mod # More assembly might be required: Docker logins, GPG, etc. It all depends # on your needs. - uses: goreleaser/goreleaser-action@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 445d5b9..4533cd7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,15 +10,15 @@ on: branches: ["main"] jobs: - build: + build-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v4 with: - go-version: "1.20" + go-version-file: go.mod - name: Build run: go build -v ./...