From a41639ec070ee9153f668abc9aa3924690afaa88 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Wed, 2 Oct 2024 16:50:45 +0200 Subject: [PATCH] Fix secret reference and improve test command options Corrected the reference for `TEST_PASS_SCRAM` in both workflows. Simplified the Go test command in `codecov.yml` and added the `shuffle=on` option for better test randomness in `sonarqube.yml`. --- .github/workflows/codecov.yml | 4 ++-- .github/workflows/sonarqube.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5b41af2..0099f12 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -30,7 +30,7 @@ env: TEST_ONLINE_SCRAM: "1" TEST_HOST_SCRAM: ${{ secrets.TEST_HOST_SCRAM }} TEST_USER_SCRAM: ${{ secrets.TEST_USER_SCRAM }} - TEST_PASS_SCRAM: ${{ secrets.TEST_USER_SCRAM }} + TEST_PASS_SCRAM: ${{ secrets.TEST_PASS_SCRAM }} permissions: contents: read @@ -59,7 +59,7 @@ jobs: sudo apt-get -y install sendmail; which sendmail - name: Run Tests run: | - go test -v -race --coverprofile=coverage.coverprofile --covermode=atomic ./... + go test -race --coverprofile=coverage.coverprofile --covermode=atomic ./... - name: Upload coverage to Codecov if: success() && matrix.go == '1.23' && matrix.os == 'ubuntu-latest' uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index 16ab41a..3f6dc11 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -24,7 +24,7 @@ env: TEST_ONLINE_SCRAM: "1" TEST_HOST_SCRAM: ${{ secrets.TEST_HOST_SCRAM }} TEST_USER_SCRAM: ${{ secrets.TEST_USER_SCRAM }} - TEST_PASS_SCRAM: ${{ secrets.TEST_USER_SCRAM }} + TEST_PASS_SCRAM: ${{ secrets.TEST_PASS_SCRAM }} jobs: build: name: Build @@ -46,7 +46,7 @@ jobs: - name: Run unit Tests run: | - go test -v -race --coverprofile=./cov.out ./... + go test -shuffle=on -race --coverprofile=./cov.out ./... - uses: sonarsource/sonarqube-scan-action@884b79409bbd464b2a59edc326a4b77dc56b2195 # master env: