-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (29 loc) · 1.05 KB
/
action.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
name: 'Test .NET 5.0 Solution'
description: 'This tests a .NET solution that follows specific conventions'
inputs:
nuget-read-token:
description: 'Read-only nuget token, called PACKAGE_READ_GITHUB_TOKEN in Arundo'
required: true
this-repo-token:
description: 'GITHUB_TOKEN for the repo calling this action'
required: true
runs:
using: "composite"
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install .NET 5.0 latest
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
source-url: https://nuget.pkg.github.com/arundo/index.json
env:
NUGET_AUTH_TOKEN: ${{inputs.nuget-read-token}}
- name: Test and save test results
run: dotnet test /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=lcov
shell: bash
- name: Send Test results to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{inputs.this-repo-token}}
path-to-lcov: ./tests/UnitTests/TestResults/coverage.info