From f36df2fcdbf7d68b33174dfd28cbf0504ac9b94a Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 18 Oct 2022 16:40:03 +0200 Subject: [PATCH] Fix codecov Go version setup The different code version usages in the codecov workflow were missing the actual go setup set, which caused all tests to always run with Go 1.17. This PR fixes this --- .github/workflows/codecov.yml | 7 ++++--- .github/workflows/sonarqube.yml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e31debb..bfab7c5 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -37,16 +37,17 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@master - + - name: Setup go + uses: actions/setup-go@v3 + with: + go-version: ${{ matrix.go }} - name: Install sendmail if: matrix.go == 1.19 && matrix.os == 'ubuntu-latest' run: | sudo apt-get -y install sendmail; which sendmail - - name: Run Tests run: | go test -v -race --coverprofile=coverage.coverprofile --covermode=atomic ./... - - name: Upload coverage to Codecov if: success() && matrix.go == 1.19 && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@v2 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index cccd2bb..5a8873f 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: 0 - name: Setup Go - uses: actions/setup-go@v2.1.3 + uses: actions/setup-go@v3 with: go-version: 1.18.x