From b66183134dbd72d51e284524e1353a675c635bb2 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Thu, 14 Mar 2024 22:23:07 +0100 Subject: [PATCH] Update Go versions in GitHub Actions workflows This commit updates the Go versions specified in the GitHub Actions workflows. The versions in 'codecov_testonly.yml', 'golangci-lint.yml', 'codecov.yml', and 'sonarqube.yml' files have been updated to more recent versions. These updates ensure the workflows use up-to-date Go language features and maintain compatibility with the latest Go releases. --- .github/workflows/codecov.yml | 4 ++-- .github/workflows/codecov_testonly.yml | 2 +- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/sonarqube.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index df1de10..92525c0 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -24,7 +24,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go: [1.18] + go: ['1.22'] steps: - name: Checkout Code uses: actions/checkout@master @@ -34,7 +34,7 @@ jobs: go test -v -race --coverprofile=coverage.coverprofile --covermode=atomic . - name: Upload coverage to Codecov - if: success() && matrix.go == 1.18 && matrix.os == 'ubuntu-latest' + if: success() && matrix.go == '1.22' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v2 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos diff --git a/.github/workflows/codecov_testonly.yml b/.github/workflows/codecov_testonly.yml index 9dcdbe7..64e2c3a 100644 --- a/.github/workflows/codecov_testonly.yml +++ b/.github/workflows/codecov_testonly.yml @@ -22,7 +22,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: [1.15, 1.16, 1.17, 1.18] + go: ['1.19', '1.20', '1.21', '1.22'] steps: - name: Checkout Code uses: actions/checkout@master diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 2d0a327..3700e65 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -21,7 +21,7 @@ jobs: steps: - uses: actions/setup-go@v3 with: - go-version: 1.19 + go-version: '1.22' - uses: actions/checkout@v3 - name: golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 63e15d3..3843b01 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -17,7 +17,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v2.1.3 with: - go-version: 1.18.x + go-version: 1.22.x - name: Run unit Tests run: |