-
Notifications
You must be signed in to change notification settings - Fork 101
29 lines (25 loc) · 796 Bytes
/
dotnet.yml
File metadata and controls
29 lines (25 loc) · 796 Bytes
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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 9.0.x
- name: Install dependencies
run: dotnet tool install --global coveralls.net
- name: Restore dependencies
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 --no-restore
- name: Test
run: dotnet test --verbosity normal ./src/ConsoleApplication/ConsoleApplication.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover