-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (53 loc) · 1.6 KB
/
iOS_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
name: iOS-CI
on:
push:
branches: "feature/iOS/*"
pull_request:
branches: "develop"
types: [labeled, opened, synchronize, reopened]
jobs:
swift-format:
if: contains(github.event.pull_request.labels.*.name, '📱 iOS')
runs-on: macos-13
env:
working-directory: ./iOS
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Install Swiftformat
run: brew install swiftformat
- name: Run Swiftformat
run: swiftformat ./Projects --config .swiftformat
working-directory: ${{env.working-directory}}
- name: Check for changes
run: |
git diff
if [[ `git status --porcelain` ]]; then
echo "Code was formatted. Failing the job."
exit 1
fi
working-directory: ${{env.working-directory}}
tuist-test:
if: contains(github.event.pull_request.labels.*.name, '📱 iOS')
runs-on: macos-13
env:
working-directory: ./iOS
steps:
- name: Xcode Version Settings
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "15.0.1"
- name: Code Checkout
uses: actions/checkout@v3
- name: Install Tuist
run: brew install tuist
working-directory: ${{env.working-directory}}
- name: Print Tuist Version
run: tuist version
working-directory: ${{env.working-directory}}
- name: Run Tuist Test
run: make ci
working-directory: ${{env.working-directory}}
- name: Tuist Build
run: make build
working-directory: ${{env.working-directory}}