[hosting] Support .NET 8 IMetricsBuilder API #3902
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
name: Build | |
on: | |
push: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-test-stable: | |
strategy: | |
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | |
matrix: | |
os: [ windows-latest, ubuntu-latest ] | |
version: [ net462, net6.0, net7.0, net8.0 ] | |
exclude: | |
- os: ubuntu-latest | |
version: net462 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetching all | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=false | |
- name: Test ${{ matrix.version }} | |
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --logger:"console;verbosity=detailed" | |
build-test-experimental: | |
strategy: | |
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | |
matrix: | |
os: [ windows-latest, ubuntu-latest ] | |
version: [ net462, net6.0, net7.0, net8.0 ] | |
exclude: | |
- os: ubuntu-latest | |
version: net462 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetching all | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore --property:ExposeExperimentalFeatures=true | |
- name: Test ${{ matrix.version }} | |
run: dotnet test **/bin/**/${{ matrix.version }}/*.Tests.dll --logger:"console;verbosity=detailed" |