Upgrade Build, Test, and Release actions to the latest versions of ac… #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |