mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
name: Build & Run Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ v2_release, v2_develop ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
branches: [ v2_release, v2_develop ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
build_and_test_debug:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
# Turn off fail-fast to let all runners run even if there are errors
|
|
fail-fast: true
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
|
|
timeout-minutes: 10
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET Core
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.x
|
|
dotnet-quality: 'ga'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
dotnet restore
|
|
|
|
- name: Build IntegrationTests
|
|
run: dotnet build Tests/IntegrationTests --configuration Debug --no-restore
|
|
|
|
- name: Set VSTEST_DUMP_PATH
|
|
shell: bash
|
|
run: echo "{VSTEST_DUMP_PATH}={logs/${{ runner.os }}/}" >> $GITHUB_ENV
|
|
|
|
- name: Run IntegrationTests 1
|
|
run: |
|
|
dotnet test Tests/IntegrationTests --no-build --verbosity normal --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
|
|
|
|
- name: Run IntegrationTests 2
|
|
run: |
|
|
dotnet test Tests/IntegrationTests --no-build --verbosity normal --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
|
|
|
|
- name: Run IntegrationTests 3
|
|
run: |
|
|
dotnet test Tests/IntegrationTests --no-build --verbosity normal --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
|
|
|
|
- name: Run IntegrationTests 4
|
|
run: |
|
|
dotnet test Tests/IntegrationTests --no-build --verbosity normal --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
|
|
|
|
- name: Run IntegrationTests 5
|
|
run: |
|
|
dotnet test Tests/IntegrationTests --no-build --verbosity normal --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
|
|
|
|
- name: Upload Test Logs
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: integration-test-logs-${{ runner.os }}
|
|
path: |
|
|
logs/
|
|
TestResults/IntegrationTests/
|
|
|