-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 942 Bytes
/
ci.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
36
37
38
39
40
41
42
name: CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: '6.x'
- name: Install Dependencies
run: |
dotnet restore
dotnet tool restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Lint
run: dotnet format --verify-no-changes
- name: Test
run: dotnet test --configuration Release --no-build --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Package
run: dotnet pack --configuration Release --no-build