Skip to content

Upgrade Build, Test, and Release actions to the latest versions of ac… #123

Upgrade Build, Test, and Release actions to the latest versions of ac…

Upgrade Build, Test, and Release actions to the latest versions of ac… #123

Workflow file for this run

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