-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 1.02 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
# Syntax: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
name: test
on:
pull_request:
workflow_dispatch:
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.1.app/Contents/Developer
jobs:
swiftlint:
runs-on: macos-13
steps:
- name: Repository Checkout
uses: actions/checkout@v3
- name: Run SwiftLint
run: swiftlint
test:
runs-on: macos-13
timeout-minutes: 30
needs: swiftlint # only run tests (which is resource intensive) after swiftlint passes
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@v3
- name: Run iOS tests
run: xcodebuild test -scheme RDOModules-Package -destination 'platform=iOS Simulator,OS=16.4,name=iPhone 14'