Skip to content

version bump

version bump #21

name: .NET Debug Build and Test
on:
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: Xcaciv.Command.sln
Nuget_Config_Path: NuGet.config
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Configure Nuget Source - remove
continue-on-error: true
run: |
dotnet nuget remove source local
- name: Configure Nuget Source - update
run: |
dotnet nuget update source github -s "https://nuget.pkg.github.com/xcaciv/index.json" -u xcaciv -p ${{ secrets.NUGET_PAT }} --store-password-in-clear-text --configfile $env:Nuget_Config_Path
- name: Restore dependencies
run: dotnet restore $env:Solution_Name
- name: Debug Build
run: dotnet build $env:Solution_Name --no-restore --configuration Debug
- name: Test with dotnet
run: dotnet test $env:Solution_Name --no-build --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
name: dotnet-results-${{ matrix.dotnet-version }}
path: TestResults-${{ matrix.dotnet-version }}
if: ${{ always() }}