38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
# Called by ci.yml to run coyote concurrency tests
|
|
# See: https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow
|
|
name: Concurrency Tests
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run-concurrency-tests:
|
|
|
|
strategy:
|
|
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
|
|
matrix:
|
|
os: [ windows-latest, ubuntu-22.04 ]
|
|
version: [ net8.0 ]
|
|
project: [ OpenTelemetry.Tests, OpenTelemetry.Api.Tests ]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
|
|
|
|
- name: Run Coyote Tests
|
|
shell: pwsh
|
|
run: .\build\scripts\test-threadSafety.ps1 -testProjectName ${{ matrix.project }} -targetFramework ${{ matrix.version }}
|
|
|
|
- name: Publish Artifacts
|
|
if: always() && !cancelled()
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: ${{ matrix.os }}-${{ matrix.project }}-${{ matrix.version }}-coyoteoutput
|
|
path: '**/*_CoyoteOutput.*'
|