Skip to content

Fixup github actions #2380

Fixup github actions

Fixup github actions #2380

Workflow file for this run

name: Flex CI
on:
push:
branches: ["release/**", "main", "feature/PubSub"]
pull_request:
branches: ["release/**", "main", "feature/PubSub"]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
debug_build_and_test:
env:
CROWDIN_API_KEY: ${{ secrets.FLEX_CROWDIN_API }}
name: Build Debug and run Tests
runs-on: windows-latest
steps:
- name: Checkout Files
uses: actions/checkout@v4
id: checkout
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.0.x
- name: Build Debug and run tests
id: build_and_test
shell: powershell
run: .\test.ps1 -TestFilter "TestCategory!=LongRunning&TestCategory!=ByHand&TestCategory!=SmokeTest&TestCategory!=DesktopRequired" ^| tee-object -FilePath build.log
- name: Test Report
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }} # run this step even if previous step failed
with:
name: NUnit Tests
path: output/Debug/TestResults/*.trx # Path to test results
reporter: dotnet-trx
- uses: actions/upload-artifact@v4
with:
name: build-logs
path: ./*.log