-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (34 loc) · 1.17 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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
pod-lint:
name: Pod Lint
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Bundle Install
run: bundle install --gemfile=Gemfile
- name: Lint PayKit Podspec
run: bundle exec --gemfile=Gemfile pod lib lint --verbose --fail-fast CashAppPayKit.podspec
- name: Lint PayKitUI Podspec
run: bundle exec --gemfile=Gemfile pod lib lint --verbose --fail-fast CashAppPayKitUI.podspec
- uses: actions/upload-artifact@v3
if: failure()
with:
name: failed_snaphots
path: /Users/runner/Library/Developer/CoreSimulator/Devices/*/data/Containers/Data/Application/*/tmp/
spm:
name: SPM Build
runs-on: macos-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Select Xcode Version (14.2.0)
run: sudo xcode-select --switch /Applications/Xcode_14.2.0.app/Contents/Developer
- name: Build
run: swift build -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphonesimulator --show-sdk-path`" -Xswiftc "-target" -Xswiftc "x86_64-apple-ios14.0-simulator"