Skip to content

Migrate to xUnit v3 #51

Migrate to xUnit v3

Migrate to xUnit v3 #51

Workflow file for this run

name: Run tests
on:
workflow_call:
pull_request:
concurrency:
group: pr-tests-${{ github.event.number }}
cancel-in-progress: true
jobs:
unit:
name: Unit tests (${{ matrix.config }})
runs-on: ubuntu-latest
strategy:
matrix:
config: [Debug, Release]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Overwrite csc problem matcher
run: echo "::add-matcher::.github/csc.json"
- name: Test
uses: TSRBerry/unstable-commands@v1
with:
commands: dotnet test -c "${{ matrix.config }}"
working-directory: RyuSocks.Test
timeout-minutes: 10
retry-codes: 139
integration:
# NOTE: The integration tests are broken and need to be rewritten.
if: false
name: Integration tests (${{ matrix.config }})
runs-on: ubuntu-latest
strategy:
matrix:
config: [ Debug, Release ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Overwrite csc problem matcher
run: echo "::add-matcher::.github/csc.json"
- name: Test
uses: TSRBerry/unstable-commands@v1
with:
commands: dotnet test -c "${{ matrix.config }}"
working-directory: RyuSocks.Test.Integration
timeout-minutes: 10
retry-codes: 139