-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·65 lines (53 loc) · 1.47 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
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-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: 14.3.1
- name: Install Mint
run: |
brew install mint
shell: bash
- name: Install Tuist
run: |
bash <(curl -Ls https://install.tuist.io)
shell: bash
- name: Fetch tuist dependencies
run: |
tuist fetch
shell: bash
- name: Tuist Warm Cache
run: |
tuist cache warm
shell: bash
- name: Generate project with tuist
run: |
tuist generate --no-open
shell: bash
- name: Cache Mint packages
uses: actions/cache@v3
with:
path: |
~/.mint/bin
~/.mint/packages
key: ${{ runner.os }}-mint-${{ hashFiles('~/.mint/metadata.json') }}
restore-keys: |
${{ runner.os }}-mint-
- name: Install Mint Dependencies
run: |
mint bootstrap
shell: bash
- name: Testing iOS app
run: exec ./.github/scripts/test_app.sh
- name: Upload coverage to Codecov
uses: codecov/[email protected]