-
-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (30 loc) · 984 Bytes
/
build.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
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build, Test, Report
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x.x'
- name: Install dependencies
run: dotnet restore RabbitMQ.Dataflows.sln
- name: Build
run: dotnet build RabbitMQ.Dataflows.sln --configuration Release --no-restore
- name: Test
run: dotnet test "./tests/UnitTests/UnitTests.csproj" --configuration Release --no-build --verbosity normal
/p:CollectCoverage=true
/p:CoverletOutput='../../coverage.cobertura.xml'
/p:CoverletOutputFormat=cobertura
- name: Upload Coverage Report
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: 'coverage.cobertura.xml'