-
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 1.06 KB
/
Copy pathdotnet.main.status.yml
File metadata and controls
44 lines (35 loc) · 1.06 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Main Status
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 10.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore /m
- name: Test
run: >-
dotnet test
--no-build
--verbosity normal
--logger trx
--collect:"XPlat Code Coverage"
-- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Upload coverage reports to Codecov
# You may pin to the exact commit or the version.
# uses: codecov/codecov-action@fcebab03f26c7530a22baa63f06b3e0515f0c7cd
uses: codecov/codecov-action@v3
with:
# Repository upload token - get it from codecov.io. Required only for private repositories
token: ${{ secrets.CODECOV_TOKEN }}
# Directory to search for coverage reports.
directory: ./