From a8420d9c2b5870158f7d86f2a0a6dbd203921798 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 3308509..f27cd60 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 uses: golangci/golangci-lint-action@v6 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