Skip to content

Cancel previous runs #65

Cancel previous runs

Cancel previous runs #65

name: XHarness Mac Catalyst Test
on:
pull_request:
push:
branches: [ main, 'releases/**' ]
release:
types: [ published ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
maccatalyst:
name: Mac Catalyst
runs-on: macos-14
env:
TEST_TARGET_FRAMEWORK: net8.0-maccatalyst
TEST_RUNTIME_IDENTIFIER: maccatalyst-x64
TEST_CONFIGURATION: Debug
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Required Tools
uses: ./.github/workflows/setup-tools
- name: Publish App
run: |
dotnet build sample/test/DeviceTestingKitApp.DeviceTests/DeviceTestingKitApp.DeviceTests.csproj \
-f ${{ env.TEST_TARGET_FRAMEWORK }} \
-r ${{ env.TEST_RUNTIME_IDENTIFIER }} \
-c ${{ env.TEST_CONFIGURATION }} \
-p:TestingMode=XHarness \
/bl:./artifacts/logs/msbuild-publish.binlog
- name: Run Tests
run: |
dotnet xharness apple test \
--target maccatalyst \
--timeout="00:02:00" \
--launch-timeout=00:06:00 \
--app sample/test/DeviceTestingKitApp.DeviceTests/bin/${{ env.TEST_CONFIGURATION }}/${{ env.TEST_TARGET_FRAMEWORK }}/${{ env.TEST_RUNTIME_IDENTIFIER }}/DeviceTestingKitApp.DeviceTests.app \
--output-directory artifacts \
--verbosity Debug
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Test Results
path: ./artifacts