Bump Microsoft.NET.Test.Sdk from 17.8.0 to 17.11.1 #181
Workflow file for this run
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
# | |
# This workflow will build and run all unit tests using dotnet docker containers, | |
# each targeting a single version of the dotnet SDK. | |
# | |
name: build-unittest | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [ "main" ] | |
merge_group: | |
branches: ["main"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
build-unittest: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# - { dotnet: '6.0-jammy', os: 'ubuntu', configuration: Debug } | |
- { dotnet: '7.0-jammy', os: 'ubuntu', configuration: Debug } | |
- { dotnet: '7.0-jammy', os: 'ubuntu', configuration: Release } | |
- { dotnet: '8.0-preview-jammy', os: 'ubuntu', configuration: Release } | |
# - { dotnet: '6.0', os: 'windows', configuration: Release } | |
- { dotnet: '7.0', os: 'windows', configuration: Debug } | |
- { dotnet: '7.0', os: 'windows', configuration: Release } | |
- { dotnet: '8.0-preview', os: 'windows', configuration: Release } | |
runs-on: ubuntu-latest | |
container: | |
image: mcr.microsoft.com/dotnet/sdk:${{ matrix.dotnet }} | |
env: | |
NUGET_CERT_REVOCATION_MODE: offline | |
GITHUB_ACTIONS: 'true' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build dotnet solutions | |
run: | | |
export SOLUTIONS=$(find ./ -type f -name "*.sln" | tr '\n' ' ') | |
for solution in $SOLUTIONS; do | |
dotnet build -c ${{ matrix.configuration }} /warnaserror $solution | |
done | |
- name: Run Tests | |
run: | | |
dotnet test -c ${{ matrix.configuration }} tests/TypeChat.UnitTests/TypeChat.UnitTests.csproj --no-build -v Normal --logger trx |