-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.01 KB
/
workflow.yml
File metadata and controls
41 lines (37 loc) · 1.01 KB
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
name: Continuous integration tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DOTNET_VERSION: '6.0.x'
jobs:
CI:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- run: dotnet restore
- run: dotnet test --collect:"XPlat Code Coverage" --settings Test/runsettings.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
with:
fail_ci_if_error: true
flags: unittests
dotnet-format:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- run: dotnet restore
- run: dotnet format --verify-no-changes --no-restore