-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.27 KB
/
Copy pathci.yml
File metadata and controls
53 lines (43 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore Bowire.Protocol.Udp.slnx
- name: Build
run: dotnet build Bowire.Protocol.Udp.slnx -c Release --no-restore
- name: Test
# XPlat Code Coverage drops one coverage.cobertura.xml per test
# project under artifacts/coverage/<guid>/.
run: >
dotnet test Bowire.Protocol.Udp.slnx -c Release --no-build -v normal
--collect:"XPlat Code Coverage"
--results-directory artifacts/coverage
- name: Upload coverage to Codecov
if: ${{ !github.event.pull_request.head.repo.fork }}
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: artifacts/coverage
files: '**/coverage.cobertura.xml'
flags: unittests
fail_ci_if_error: false