From 0af8706381b2c598d194478bb633075e63f1e4bd Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Thu, 1 Dec 2022 07:44:03 +0100 Subject: [PATCH] Only run tests with coverage once --- .github/workflows/dendrite.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dendrite.yml b/.github/workflows/dendrite.yml index 78b4cd4b8..a2857258c 100644 --- a/.github/workflows/dendrite.yml +++ b/.github/workflows/dendrite.yml @@ -74,7 +74,7 @@ jobs: strategy: fail-fast: false matrix: - go: ["1.18", "1.19"] + go: ["1.19"] steps: - uses: actions/checkout@v3 - name: Setup go @@ -94,11 +94,7 @@ jobs: with: # Optional: pass GITHUB_TOKEN to avoid rate limiting. token: ${{ secrets.GITHUB_TOKEN }} - - run: go test -short -json -v -coverpkg=./... -coverprofile=cover.out $(go list ./... | grep -v /cmd/dendrite*) 2>&1 | gotestfmt - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - with: - flags: unittests + - run: go test -short -json -v | gotestfmt # build Dendrite for linux with different architectures and go versions build: @@ -209,7 +205,7 @@ jobs: strategy: fail-fast: false matrix: - go: ["1.18", "1.19"] + go: ["1.19"] steps: - uses: actions/checkout@v3 - name: Setup go @@ -238,7 +234,7 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: - flags: integration + flags: unittests # run database upgrade tests upgrade_test: