-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·74 lines (63 loc) · 1.87 KB
/
Testing.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
73
74
name: Testing
on: [push, pull_request]
env:
# TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
test:
name: Testing SWDestiny Trades app
runs-on: macos-14
strategy:
matrix:
scheme: [
SWDestinyTrades
]
workspace: [
swdestiny-trades.xcworkspace
]
destination: [
'platform=iOS Simulator,name=iPhone 15 Pro,OS=17.5'
]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: 15.4
- name: Install Project Tools
uses: jdx/mise-action@v2
with:
experimental: true
- name: Fetch tuist dependencies
run: |
tuist install
shell: bash
#- name: Tuist Cache
# run: |
# tuist cache
# shell: bash
- name: Generate project with tuist
run: |
tuist generate --no-open
shell: bash
- name: Test ${{ matrix.scheme }} on ${{ matrix.destination }}
run: |
xcodebuild -workspace ${{ matrix.workspace }} \
-scheme ${{ matrix.scheme }} \
-destination '${{ matrix.destination }}' \
-resultBundlePath ./coverage/SwdUnitTests.xcresult \
-enableCodeCoverage YES \
test | xcpretty && exit ${PIPESTATUS[0]}
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
swift: true
swift_project: SWDestinyTrades
verbose: true
- name: Upload Snapshot Failures
if: failure()
uses: actions/upload-artifact@v3
with:
name: snapshot-failures
path: SWDestinyTradesTests/FailureDiffs/