Skip to content

chore: bump Fox.ConfigKit.ResultKit to v1.0.5 with Fox.ResultKit 1.3.0 #10

chore: bump Fox.ConfigKit.ResultKit to v1.0.5 with Fox.ResultKit 1.3.0

chore: bump Fox.ConfigKit.ResultKit to v1.0.5 with Fox.ResultKit 1.3.0 #10

name: Build and Test
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build-and-test:
name: Build and Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
dotnet-version: ['8.0.x', '9.0.x', '10.0.x']
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --configuration Release --no-restore --warnaserror
- name: Run tests
run: dotnet test --configuration Release --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings coverlet.runsettings
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.dotnet-version == '8.0.x'
uses: codecov/codecov-action@v4
with:
files: '**/coverage.cobertura.xml'
flags: unittests
name: codecov-fox-configkit
fail_ci_if_error: true
verbose: true
pack-validation:
name: Pack Validation
runs-on: ubuntu-latest
needs: build-and-test
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Pack Fox.ConfigKit
run: dotnet pack src/Fox.ConfigKit/Fox.ConfigKit.csproj --configuration Release --no-restore
- name: Pack Fox.ConfigKit.ResultKit
run: dotnet pack src/Fox.ConfigKit.ResultKit/Fox.ConfigKit.ResultKit.csproj --configuration Release --no-restore
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: ./artifacts/*.nupkg
retention-days: 7