-
Notifications
You must be signed in to change notification settings - Fork 26
35 lines (33 loc) · 1.03 KB
/
development-action.yml
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
31
32
33
34
35
name: DEV-WORKFLOW-ACTION
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.x.x
- name: Restore Workload dependencies
run: dotnet workload restore
# - name: Install .NET Maui workload packs
# run: dotnet workload install maui android
- name: Restore NuGet packages
run: dotnet restore
- name: Build
run: dotnet build
- name: Test
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=TestResults/ --collect:"XPlat Code Coverage"
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./TestResults/coverage.cobertura.xml
flags: unittests
name: codecov-umbrella
#fail_ci_if_error: true