From 176e654dd5ee42a3c7cde887219af99df712c993 Mon Sep 17 00:00:00 2001 From: Wilson Mun <30316250+wmundev@users.noreply.github.com> Date: Fri, 3 May 2024 18:32:38 +1000 Subject: [PATCH] feat: run code coverage on all prs and remove redundant github action --- .../build_and_run_unit_tests_windows.yml | 30 ------------------- ...run_all_tests_and_upload_code_coverage.yml | 2 ++ 2 files changed, 2 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/build_and_run_unit_tests_windows.yml diff --git a/.github/workflows/build_and_run_unit_tests_windows.yml b/.github/workflows/build_and_run_unit_tests_windows.yml deleted file mode 100644 index cff26d11..00000000 --- a/.github/workflows/build_and_run_unit_tests_windows.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: build_and_run_unit_tests_windows - -on: - pull_request: - branches: [ "main" ] - workflow_dispatch: - -jobs: - build_and_run_unit_tests_windows: - runs-on: windows-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.x - - name: Add zip files required for running tests - run: | - Compress-Archive -Path "resources\geocoding\*" -DestinationPath "resources\geocoding.zip" - Compress-Archive -Path "resources\test\geocoding\*" -DestinationPath "resources\test\testgeocoding.zip" - - name: Restore dependencies - run: dotnet restore - working-directory: ./csharp - - name: Build solution - run: dotnet build --no-restore - working-directory: ./csharp - - name: Test solution - run: dotnet test --no-build --verbosity normal - working-directory: ./csharp diff --git a/.github/workflows/run_all_tests_and_upload_code_coverage.yml b/.github/workflows/run_all_tests_and_upload_code_coverage.yml index f2f9ef80..cb391441 100644 --- a/.github/workflows/run_all_tests_and_upload_code_coverage.yml +++ b/.github/workflows/run_all_tests_and_upload_code_coverage.yml @@ -3,6 +3,8 @@ name: "run_all_tests_and_upload_code_coverage" on: push: branches: [ main ] + pull_request: + branches: [ main ] jobs: run_all_tests_and_upload_code_coverage: