From 86bde27bdb8b951e7fdc36b3c8926b3ffe98365f Mon Sep 17 00:00:00 2001 From: Friedrich Wilken Date: Thu, 28 Dec 2023 10:29:41 +0100 Subject: [PATCH] use cache for linting Change setup-go to use cache (enabled by default). Also, extract the used Go version from the go.mod file instead of hard coding it. --- .github/workflows/codequality.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codequality.yml b/.github/workflows/codequality.yml index 0af0d28b..035d6760 100644 --- a/.github/workflows/codequality.yml +++ b/.github/workflows/codequality.yml @@ -27,9 +27,11 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.21" - cache: false - - uses: actions/checkout@v4 + go-version-file: "go.mod" + + - name: checkout code + uses: actions/checkout@v4 + - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: