Initial code for segment diff calculation #17
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: Build and run tests | |
on: | |
push | |
env: | |
DOTNET_SDK_VERSION: '8.0.x' | |
DOTNET_TFM: 'net8.0' | |
jobs: | |
build-and-test: | |
runs-on: windows-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@v3 | |
- name: Setup DotNet ${{ env.DOTNET_SDK_VERSION }} Environment | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_SDK_VERSION }} | |
- name: 'Build .NET Projects' | |
shell: pwsh | |
run: | | |
dotnet build --configuration Release | |
dotnet test -p:CollectCoverage=true -p:CoverletOutputFormat=opencover --configuration Release | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4.0.1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: lassevk/DiffLib2 |