Apply refined code style and formatting #69
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
buildtest: | |
runs-on: windows-latest | |
steps: | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET 7.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build Debug | |
run: dotnet build --configuration Debug | |
- name: Run tests | |
run: dotnet test --no-build --collect "Code Coverage" | |
buildrelease: | |
runs-on: windows-latest | |
steps: | |
- name: Install .NET 6.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install .NET 7.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install .NET 8.0 | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build Release | |
run: dotnet build --configuration Release -p:ContinuousIntegrationBuild=true | |
- name: Upload NuGet package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: nuget | |
path: bin/lib/*.nupkg | |
if-no-files-found: error |