Update publish-packages-1.0.yml #18
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: Test instrumentation libraries # test instrumentation libraries with latest stable version of API/SDK as they are packed against it | |
on: | |
push: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-test: | |
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: dotnet restore | |
run: dotnet restore ./build/InstrumentationLibraries.proj -p:RunningDotNetPack=true | |
- name: dotnet build | |
run: dotnet build ./build/InstrumentationLibraries.proj --configuration Release --no-restore -p:RunningDotNetPack=true | |
- name: dotnet test | |
run: dotnet test **/bin/Release/${{ matrix.version }}/OpenTelemetry.Instrumentation*.Tests.dll --framework ${{ matrix.version }} --configuration Release --no-restore --no-build --logger:"console;verbosity=detailed" |