-
Notifications
You must be signed in to change notification settings - Fork 164
40 lines (38 loc) · 1.25 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
name: CI
on:
pull_request:
branches:
- develop
jobs:
test:
runs-on: macOS-latest
if: github.event_name == 'pull_request' # if only run pull request when multiple trigger workflow
steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
with:
ruby-version: '2.6'
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile') }} # change your gemfile path
restore-keys: |
${{ runner.os }}-gems-
- name: bundle install
run: bundle install
- name: pod install
run: pod install || pod install --repo-update
- name: Install iOS 12.4 simulator
run: |
sudo xcversion simulators --install='iOS 12.4'
xcrun simctl list runtimes
xcrun simctl create custom-test-device "iPhone 6" "com.apple.CoreSimulator.SimRuntime.iOS-12-4"
xcrun simctl list devices 12.4
- name: Install iOS 11.4 simulator
run: |
sudo xcversion simulators --install='iOS 11.4'
xcrun simctl list runtimes
xcrun simctl create custom-test-device "iPhone 6" "com.apple.CoreSimulator.SimRuntime.iOS-11-4"
xcrun simctl list devices 11.4
- name: test
run: rake test