forked from microsoft/fluentui-apple
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (69 loc) · 2.22 KB
/
ci.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
push:
branches:
- main
- main_*
pull_request:
branches:
- main
- main_*
jobs:
validation:
runs-on: macos-13
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Switch to current version of Xcode
run: scripts/xcode_select_current_version.sh
- name: pod lib lint
run: scripts/podliblint.sh
- name: validation
run: scripts/validation.sh
xcodebuild:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
build_command: [
'macos_build FluentUITestApp-macOS Release build',
'macos_build FluentUITestApp-macOS Debug build -resultBundlePath TestResultsMac test -destination "platform=macOS,arch=x86_64"',
'ios_simulator_build Demo.Development Debug build test -resultBundlePath TestResultsiOS -destination "platform=iOS Simulator,name=iPhone 14 Pro"',
'ios_device_build Demo.Development Release build',
]
steps:
- uses: actions/checkout@v3
- name: Switch to current version of Xcode
run: scripts/xcode_select_current_version.sh
- name: Install xcbeautify
run: brew install xcbeautify
- name: scripts/xcodebuild_wrapper.sh ${{ matrix.build_command }} | xcbeautify
run: scripts/xcodebuild_wrapper.sh ${{ matrix.build_command }} | xcbeautify
continue-on-error: true
- name: Zip if TestResultsMac.xcresult bundle exists
run: |
if [ -d "TestResultsMac.xcresult" ]; then
zip -r TestResultsMac.zip TestResultsMac.xcresult
else
echo "TestResultsMac.xcresult not found."
fi
- name: Upload TestResultsMac.zip
uses: actions/upload-artifact@v3
with:
name: xctest-resultsMac
path: TestResultsMac.zip
retention-days: 3
- name: Zip if TestResultsiOS.xcresult bundle exists
run: |
if [ -d "TestResultsiOS.xcresult" ]; then
zip -r TestResultsiOS.zip TestResultsiOS.xcresult
else
echo "TestResultsiOS.xcresult not found."
fi
- name: Upload TestResultsiOS.zip
uses: actions/upload-artifact@v3
with:
name: xctest-resultsiOS
path: TestResultsiOS.zip
retention-days: 3