From 882f7eda23108bc56217dddd23f3d26ee19b536b Mon Sep 17 00:00:00 2001 From: Philip Laine Date: Tue, 7 May 2024 23:25:55 +0200 Subject: [PATCH] Fetch go version from mod file --- .github/workflows/tests.yaml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1949467f..dea844a6 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -13,9 +13,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21.x - check-latest: true - cache: true + go-version-file: go.mod - name: Setup golangci-lint uses: golangci/golangci-lint-action@v6 with: @@ -30,9 +28,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21.x - check-latest: true - cache: true + go-version-file: go.mod - name: Run tests run: make test e2e: @@ -47,9 +43,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21.x - check-latest: true - cache: true + go-version-file: go.mod - name: Run e2e run: make e2e CNI=${{ matrix.cni }} helm-docs: @@ -61,9 +55,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: 1.21.x - check-latest: true - cache: true + go-version-file: go.mod - name: Run helm-docs run: make helm-docs - name: Check if working tree is dirty