-
Notifications
You must be signed in to change notification settings - Fork 99
41 lines (37 loc) · 1.06 KB
/
dotnet.yml
File metadata and controls
41 lines (37 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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Install tools
run: |
dotnet tool install --global coverlet.console
- name: Restore
run: dotnet restore ./src --verbosity m
- name: Pack
run: dotnet pack -c release ./src/System.Net.IPNetwork
- name: Build
run: dotnet build --no-restore -c release ./src/ConsoleApplication
- name: Test with coverage
run: |
dotnet build ./src/TestProject/TestProject.csproj -c Debug
coverlet src/TestProject/bin/Debug/net10.0/TestProject.dll \
--target dotnet \
--targetargs "src/TestProject/bin/Debug/net10.0/TestProject.dll" \
--format lcov \
--output coverage.lcov
- name: Upload to Coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.lcov
format: lcov