-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 882 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
name: Build
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Run Unit Test
working-directory: ./ConcurrentCaching.Test
run: dotnet test --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=lcov
- name: Get Path To LCOV File
id: get_lcov_path
shell: bash
run: printf '::set-output name=lcov_path::%s\n' ConcurrentCaching.Test/TestResults/*/coverage.info
- name: Publish Test Results to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.get_lcov_path.outputs.lcov_path }}
format: lcov