-
Notifications
You must be signed in to change notification settings - Fork 113
39 lines (30 loc) · 1000 Bytes
/
main.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
name: main build
on:
pull_request:
push:
branches:
- main
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@230611dbd0eb52da1e1f4f7bc8bb0c3a339fc8b7
- name: Install Dotnet
uses: actions/setup-dotnet@607fce577a46308457984d59e4954e075820f10a
with:
dotnet-version: '8.0.x'
- name: Dotnet Installation Info
run: dotnet --info
- name: Build
run: dotnet build
- name: Test
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Report Code Coverage
if: matrix.platform == 'windows-latest' # only generate and upload code coverage once
uses: codecov/codecov-action@260aa3b4b2f265b8578bc0e721e33ebf8ff53313
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: CSharpRepl.Tests/coverage.opencover.xml