From f27d956de6695308bb37cc901c0b2d7a99399900 Mon Sep 17 00:00:00 2001 From: Kim Christensen Date: Fri, 24 May 2024 22:45:14 +0200 Subject: [PATCH] Add Go caching in the workflow Signed-off-by: Kim Christensen --- .github/workflows/check-docs-links.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-docs-links.yml b/.github/workflows/check-docs-links.yml index 50b0df96b..da5c944de 100644 --- a/.github/workflows/check-docs-links.yml +++ b/.github/workflows/check-docs-links.yml @@ -6,8 +6,11 @@ # upload test results https://github.com/actions/upload-artifact name: Check Website Links - on: pull_request + +env: + GOVERSION: 1.21.3 + jobs: htmltest: runs-on: ubuntu-latest @@ -19,6 +22,11 @@ jobs: with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + + - uses: actions/setup-go@v4 + with: + go-version: "${{ env.GOVERSION }}" # The Go version to download (if necessary) and use. + cache: true - name: Set up Hugo uses: peaceiris/actions-hugo@v2