From 95ab7da5f50391c54b2a39648137831c9e69e183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haris=20Osmanagi=C4=87?= Date: Tue, 26 Nov 2024 21:51:47 +0100 Subject: [PATCH] Fix GH action for running unit tests (#1992) --- .github/workflows/test.yml | 8 +------- cmd/cli/cli_test.go | 2 +- pkg/conduit/entrypoint_test.go | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 83a5bcae4..0c1015d65 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,10 +20,4 @@ jobs: - name: Test # The test coverate and the test report are needed for the SonarCloud analysis - run: make test-integration GOTEST_FLAGS="-v -count=1 -coverprofile coverage.out" 2>&1 | tee test-report.out - - - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@v3.1.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: make test-integration GOTEST_FLAGS="-v -count=1" diff --git a/cmd/cli/cli_test.go b/cmd/cli/cli_test.go index 7bca0b0d1..c31a1842e 100644 --- a/cmd/cli/cli_test.go +++ b/cmd/cli/cli_test.go @@ -43,7 +43,7 @@ func TestBuildRootCmd_HelpOutput(t *testing.T) { "db.postgres.table", "db.sqlite.path", "db.sqlite.table", - "dev.blockprofileblockprofile", + "dev.blockprofile", "dev.cpuprofile", "dev.memprofile", "api.enabled", diff --git a/pkg/conduit/entrypoint_test.go b/pkg/conduit/entrypoint_test.go index 21c56bdad..133a95890 100644 --- a/pkg/conduit/entrypoint_test.go +++ b/pkg/conduit/entrypoint_test.go @@ -36,7 +36,7 @@ func TestFlags_HelpOutput(t *testing.T) { "db.postgres.table", "db.sqlite.path", "db.sqlite.table", - "dev.blockprofileblockprofile", + "dev.blockprofile", "dev.cpuprofile", "dev.memprofile", "api.enabled",