-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathrun_all_tests_and_upload_code_coverage.yml
More file actions
30 lines (28 loc) · 1.12 KB
/
run_all_tests_and_upload_code_coverage.yml
File metadata and controls
30 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "run_all_tests_and_upload_code_coverage"
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run_all_tests_and_upload_code_coverage:
runs-on: windows-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.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"
Compress-Archive -Path "resources\test\carrier\*" -DestinationPath "resources\test\testcarrier.zip"
- name: Run tests
run: dotnet test csharp/PhoneNumbers.sln --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: twcclegg/libphonenumber-csharp