From 4454804586b68b6af8193d1bc0b993e6978c7bae Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Thu, 22 Aug 2024 17:59:12 +0200 Subject: [PATCH] gha:setup-go: Use go version from go.mod Instead of using the latest go stable release, we can tell the setup-go action to use the go version specified in the go.mod file. Signed-off-by: Christophe Fergeau --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 4b0635e..48f516f 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: stable + go-version-file: go.mod - name: golangci-lint run: make lint build: @@ -41,7 +41,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: stable + go-version-file: go.mod - name: Build run: make - name: Test