Skip to content

Commented out sdk target #204

Commented out sdk target

Commented out sdk target #204

Workflow file for this run

name: .NET Core
on: [push, pull_request]
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: ['net60', 'net80', 'net90']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .Net 6.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x' # SDK Version to use.
- name: Setup .Net 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # SDK Version to use.
- name: Setup .Net 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x' # SDK Version to use.
- name: Dotnet info
run: |
dotnet --version
dotnet --info
- name: Clear nuget cache
run: |
dotnet clean
dotnet nuget locals all --clear
- name: Dotnet restore
run: |
dotnet restore
- name: Build and Run unit tests
run: |
dotnet test --no-restore --configuration Release --verbosity normal --framework=${{ matrix.framework }} --logger trx --results-directory "TestResults-${{ matrix.os }}-${{ matrix.framework }}"
- name: Upload dotnet test results
uses: actions/upload-artifact@v4
with:
name: dotnet-results-${{ matrix.os }}-${{ matrix.framework }}
path: TestResults-${{ matrix.os }}-${{ matrix.framework }}
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
#- name: Publish nupkg
# uses: actions/upload-artifact@v4
# with:
# name: CSRakowski.AsyncStreamsPreparations-nupkg
# path: |
# bin/Release/CSRakowski.AsyncStreamsPreparations.*.nupkg