Skip to content

Fixup github actions #2389

Fixup github actions

Fixup github actions #2389

Workflow file for this run

name: Flex CI
on:
push:
branches: ["release/**", "main", "feature/PubSub"]
pull_request:
branches: ["release/**", "main", "feature/PubSub"]
workflow_dispatch:
permissions:
contents: read
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
debug_build_and_test:
name: Build Debug and run managed/native tests
runs-on: windows-latest
steps:
- name: Checkout Files
uses: actions/checkout@v4
id: checkout
- name: Build Debug x64 (with tests)
id: build_debug
shell: powershell
run: |
.\build.ps1 -Configuration Debug -Platform x64 -BuildTests
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Run managed tests (filtered)
id: test_managed
shell: powershell
run: |
.\test.ps1 -Configuration Debug -NoBuild -TestFilter "TestCategory!=LongRunning&TestCategory!=ByHand&TestCategory!=SmokeTest&TestCategory!=DesktopRequired"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Run native tests
id: test_native
shell: powershell
run: |
.\test.ps1 -Configuration Debug -Native
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Upload TRX test results
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: trx-results
path: |
**/*.trx
if-no-files-found: warn
- uses: actions/upload-artifact@v4
with:
name: build-logs
path: |
./*.log
./Output/**/*.log
publish_test_results:
name: Publish Test Results
if: ${{ !cancelled() }}
needs: debug_build_and_test
runs-on: ubuntu-latest
steps:
- name: Download TRX artifacts
uses: actions/download-artifact@v4
with:
name: trx-results
path: test-results
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@27d65e188ec43221b20d26de30f4892fad91df2f
with:
files: 'test-results/**/*.trx'
check_name: NUnit Tests
comment_mode: off
job_summary: true
fail_on: test failures