From 22a859a9ed32a109d0c31d03469c7911b6dfdd72 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Mon, 18 Dec 2023 10:11:10 -0800 Subject: [PATCH] Use latest stable version of Go --- .github/workflows/ci.yml | 9 +++++++-- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/lint.yml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57e028ed..7d8d1606 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,10 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: read + strategy: + fail-fast: false + matrix: + go-version: [stable] steps: - name: Checkout Repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -36,10 +40,11 @@ jobs: - name: Setup Golang Environment uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: go.mod + go-version: ${{ matrix.go-version }} - name: Run Unit Tests run: make unit-test + build: name: Build Client runs-on: ubuntu-22.04 @@ -92,7 +97,7 @@ jobs: - name: Setup Golang Environment uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: go.mod + go-version: stable - name: Run GoReleaser uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 587fb9de..7c7a5c01 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -55,7 +55,7 @@ jobs: - name: Setup Golang Environment uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: go.mod + go-version: stable # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 65c23752..52cc98f6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: - name: Setup Golang Environment uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - go-version-file: go.mod + go-version: stable - name: Lint Code uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0