-
Notifications
You must be signed in to change notification settings - Fork 105
32 lines (30 loc) · 1009 Bytes
/
test.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
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: windows-2022
env:
Configuration: Debug
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7
- name: Build test project and its dependencies
run: dotnet build Source\VersOne.Epub.Test -c $env:Configuration
- name: Run unit tests
run: dotnet test Source\VersOne.Epub.Test --filter Unit --no-restore --collect:"XPlat Code Coverage" --settings Source\VersOne.Epub.Test\coverlet.runsettings
- name: Upload code coverage result to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run integration tests
run: dotnet test Source\VersOne.Epub.Test --filter Integration --no-restore