-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.42 KB
/
dotnet.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
43
44
45
46
47
48
49
50
51
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
# run build and test
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --logger 'trx;LogFileName=test-results.trx'
- name: Collect Code Coverage
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=ManagedCode.Queue.Tests/lcov.info
env:
DEFAULT_REGION: eu-west-1
AWS_ACCESS_KEY_ID: localkey
AWS_SECRET_ACCESS_KEY: localsecret
- name : coverlet
uses: b3b00/[email protected]
with:
testProject: 'ManagedCode.Queue.Tests/ManagedCode.Queue.Tests.csproj'
output: 'lcov.info'
outputFormat: 'lcov'
excludes: '[program]*,[test]test.*'
- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{secrets.GITHUB_TOKEN }}
path-to-lcov: ManagedCode.Queue.Tests/lcov.info