Skip to content

Fixup github actions #2386

Fixup github actions

Fixup github actions #2386

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: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@27d65e188ec43221b20d26de30f4892fad91df2f
if: ${{ !cancelled() }}
with:
files: '**/*.trx'
check_name: NUnit Tests
comment_mode: always
job_summary: true
fail_on: test failures
- uses: actions/upload-artifact@v4
with:
name: build-logs
path: |
./*.log
./Output/**/*.log