-
-
Notifications
You must be signed in to change notification settings - Fork 206
50 lines (42 loc) · 1.23 KB
/
device-tests-ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: iOS Device Tests
on:
push:
branches:
- main
- release/*
pull_request:
paths-ignore:
- "**.md"
jobs:
ios-tests:
runs-on: macos-15
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NO_ANDROID: true
NO_MACCATALYST: true
steps:
- name: Cancel Previous Runs
if: github.ref_name != 'main' && !startsWith(github.ref_name, 'release/')
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # Tag: 0.12.1
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Environment
uses: ./.github/actions/environment
- name: Build iOS Test App
run: pwsh ./scripts/device-test.ps1 ios -Build
- name: Run Tests
id: first-run
continue-on-error: true
run: pwsh scripts/device-test.ps1 ios -Run
- name: Retry Tests (if previous failed to run)
if: steps.first-run.outcome == 'failure'
run: pwsh scripts/device-test.ps1 ios -Run
- name: Upload results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: device-test-ios-results
path: test_output