-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 1008 Bytes
/
build.yml
File metadata and controls
34 lines (32 loc) · 1008 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
30
31
32
33
34
on:
push:
branches:
- main
tags-ignore:
- '**'
paths:
- '.github/workflows/build.yml'
- 'global.json'
- 'Directory.Build.props'
- 'EntityDb.sln'
- 'src/**'
- 'test/**'
name: Build
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
- name: Restore Dependencies
run: dotnet restore EntityDb.sln --locked-mode
- name: Run Project Tests
run: dotnet test EntityDb.sln --no-restore -c Debug --collect:"XPlat Code Coverage" --results-directory ./TestResults -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
- name: Publish Coverage Results
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./TestResults/**/*.xml