51 lines (43 loc) · 1.18 KB
/
swift.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
name: 'Build'
on:
workflow_dispatch:
# push:
# paths:
# - 'src/**'
jobs:
test:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- name: Set XCode Version
run: sudo xcode-select -s /Applications/Xcode_13.2.app
- name: Install Dependences
working-directory: src
run: |
pod repo update
pod install
shell: bash
# No support for Package.resolve v2 on GitHub
- name: Remove Package.resolve
working-directory: src
run: |
rm ./MQTTAnalyzer.xcworkspace/xcshareddata/swiftpm/Package.resolved
- name: iOS Tests
working-directory: src
run: |
xcodebuild test -enableCodeCoverage YES \
-workspace MQTTAnalyzer.xcworkspace \
-scheme MQTTAnalyzer \
-testPlan UnitTestPlan \
-destination 'platform=iOS Simulator,name=iPhone 13,OS=15.2'
- name: Upload test results
uses: actions/upload-artifact@v3
if: failure()
with:
name: test_output
path: src/fastlane/test_output
# no public macOS 12 runner available
#- name: macOS Tests
# working-directory: src
# run: |
# fastlane mac tests