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.
This commit is contained in:
Winni Neessen 2024-03-14 22:23:07 +01:00
parent 71b68f79a3
commit b66183134d
Signed by: wneessen
GPG key ID: 5F3AF39B820C119D
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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: |