Skip to content

Adding more comprehensive tests #52

Adding more comprehensive tests

Adding more comprehensive tests #52

name: XHarness Mac Catalyst Test
on:
pull_request:
push:
branches: [ main, 'releases/**' ]
release:
types: [ published ]
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
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: Test Results
path: ./artifacts