-
Notifications
You must be signed in to change notification settings - Fork 43
49 lines (42 loc) · 1.31 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
name: Build and test
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v1
- run: ls /Applications
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.2.app && /usr/bin/xcodebuild -version
- name: Install pods
run: pod install --repo-update
- name: Lint podspec
run: pod lib lint --no-clean
# tests:
# runs-on: macos-12
# strategy:
# matrix:
# include:
# # Latest xcode
# - xcode: "14.2"
# ios: "16.2"
# # Older version
# - xcode: "13.1"
# ios: "15.0"
# name: test iOS (${{ matrix.ios }})
# steps:
# - uses: actions/checkout@v1
# - run: ls /Applications
# - name: Select Xcode
# run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app && /usr/bin/xcodebuild -version
# - name: Install pods
# run: pod install --repo-update
# - name: Run unit tests
# run: xcodebuild test -scheme PostHogTests -workspace PostHog.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13,OS=${{ matrix.ios }}' | xcpretty && exit ${PIPESTATUS[0]}