-
Notifications
You must be signed in to change notification settings - Fork 11
68 lines (53 loc) · 1.68 KB
/
test.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
# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: test
on:
pull_request:
workflow_dispatch:
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 180
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 10
jobs:
swiftlint:
runs-on: ubuntu-latest
steps:
- name: Workaround
run: |
echo "Github doesnt let you remove a job, causes future iterations to hang waiting on a phantom. TODO."
test:
runs-on: macos-13
timeout-minutes: 120
steps:
- name: Prestart the simulator # https://circleci.com/docs/2.0/testing-ios/#pre-starting-the-simulator
# 🧐 when changing below, don't forget to also change the device name in the Fastfile too:
run: |
xcrun simctl boot "iPhone 14" || true
- name: Checkout
uses: actions/checkout@v4
- name: Setup Homebrew
run: |
make homebrew_ci
- name: Build mint dependencies
uses: ./.github/actions/build-mint
- name: Run SwiftLint
run: |
make run_swiftlint
- name: Checkout LFS resources
run: |
git lfs pull
git checkout .
- name: Generate project
run: |
make generate_project
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Build and test
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
run: |
bundle exec fastlane ios test_ci