[repo] CI improvements #3
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: Coyote Concurrency Tests | |
on: | |
push: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
pull_request: | |
branches: [ 'main*' ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
coyote-concurrency-tests: | |
strategy: | |
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | |
matrix: | |
os: [ windows-latest, ubuntu-latest ] | |
version: [ net8.0 ] | |
project: [ OpenTelemetry.Tests, OpenTelemetry.Api.Tests ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # fetching all | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
- name: Run Coyote Tests | |
shell: pwsh | |
run: .\build\test-threadSafety.ps1 -testProjectName ${{ matrix.project }} -targetFramework ${{ matrix.version }} | |
- name: Publish Artifacts | |
if: always() && !cancelled() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.os }}-${{ matrix.project }}-${{ matrix.version }}-coyoteoutput | |
path: '**/*_CoyoteOutput.*' |