From a15443929cd169ae45e0a525403d6111a74b0576 Mon Sep 17 00:00:00 2001 From: Veikko Eeva Date: Sun, 24 Nov 2024 21:42:59 +0200 Subject: [PATCH] Let tests be run on all branches alike (#392) --- .github/workflows/main.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 974e025..e101d64 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -195,16 +195,10 @@ jobs: # echo "file_name=TestReport.${{ github.run_number }}.md" >> $GITHUB_ENV # shell: bash - # 1. Always runs on non-macOS. MacOS is skipped at the moment due to issues with some .NET crypto libraries. - # 2. Always runs on feature branches (github.ref != 'refs/heads/main' is true) - # 3. Always runs on PR events - # 4. Skips only when merging to main if it came from a PR + # MacOS is skipped at the moment due to issues with some .NET crypto libraries. + # Until tests are a fixed a bit. The coverage from the executable does not have a file suffix in Linux. - name: Test - if: | - runner.os != 'macOS' && - (github.ref != 'refs/heads/main' || - (github.event_name == 'pull_request') || - (!github.event.pull_request && !contains(github.event.before, github.event.after))) + if: runner.os != 'macOS' run: dotnet tool run dotnet-coverage collect --output '${{ github.workspace }}/reports/coverage.cobertura.xml' --output-format cobertura '${{ github.workspace }}/test/${{ env.VERIFIABLE_TESTS }}/bin/${{ env.BUILD_CONFIGURATION }}/net9.0/${{ env.VERIFIABLE_TESTS }}' --report-trx --report-trx-filename testresults.trx --results-directory '${{ github.workspace }}/reports' timeout-minutes: 5