Microsoft.NET.Test.Sdk and MSTest minor upgrades #20
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: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
cache: true | |
cache-dependency-path: '**/packages.lock.json' | |
- name: Restore dependencies | |
run: dotnet restore --use-current-runtime | |
- name: Build | |
run: dotnet build --no-restore --use-current-runtime | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --logger html --logger trx | |
- name: Test results artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test-results-${{ matrix.os }} | |
path: '*/TestResults' | |
if: ${{ always() }} |