-
Notifications
You must be signed in to change notification settings - Fork 11
100 lines (84 loc) · 2.7 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Allround Check
on:
push:
branches:
- master
- dev
pull_request:
branches:
- dev
jobs:
build-test-common:
name: Common / Build + Test
runs-on: macOS-13
strategy:
matrix:
xcode: ['/Applications/Xcode_15.0.app/Contents/Developer']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/setup
- name: Copy brand assets
run: cp -R ./iOS/Branding/openHPI/assets-ios-brand.xcassets ./iOS/assets-ios-brand.generated.xcassets
- name: Disable package plugin validation
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Build + Test
run: bundle exec fastlane run scan scheme:"${scheme}" clean:true
env:
scheme: Common
DEVELOPER_DIR: ${{ matrix.xcode }}
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 80
build-test-ios:
name: iOS / Build + Test
runs-on: macOS-13
strategy:
matrix:
xcode: ['/Applications/Xcode_15.0.app/Contents/Developer']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/setup
- name: Copy brand assets
run: cp -R ./iOS/Branding/openHPI/assets-ios-brand.xcassets ./iOS/assets-ios-brand.generated.xcassets
- name: Disable package plugin validation
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Build + Test
run: bundle exec fastlane run scan scheme:"${scheme}" clean:true
env:
scheme: openHPI-iOS
DEVELOPER_DIR: ${{ matrix.xcode }}
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 80
lint:
name: Lint code
runs-on: macOS-13
strategy:
matrix:
xcode: ['/Applications/Xcode_15.0.app/Contents/Developer']
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/actions/setup
- name: Run code validation
uses: ./.github/actions/swiftlint
check-locales:
name: Check localization
runs-on: macOS-13
strategy:
matrix:
xcode: ['/Applications/Xcode_15.0.app/Contents/Developer']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/setup
- name: Check localization
run: |
bundle exec fastlane localize
echo "\nThe following files have incomplete localization:"
git status --porcelain -- ':!.bundle'
git diff --quiet -- ':!.bundle'