-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (35 loc) · 1.38 KB
/
main.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
name: Swift CI
on: [push]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Cocoapods
run: |
gem install cocoapods
pod repo add-cdn trunk https://cdn.cocoapods.org/
- name: Install Dependencies
run: |
cd Example
pod install --repo-update
- name: Build Example Project
run: |
cd Example
xcodebuild -workspace ImageKit.xcworkspace -scheme ImageKit-Example -destination 'platform=iOS Simulator,name=iPhone 15' clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Run Tests
run: |
cd Example
xcodebuild -workspace ImageKit.xcworkspace -scheme ImageKit-Example -destination 'platform=iOS Simulator,name=iPhone 15' -enableCodeCoverage YES clean test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
- name: Upload Coverage to codecov
run: bash <(curl -s https://codecov.io/bash) -J '^ImageKitIO$' -X coveragepy
lint-test-pod:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Cocoapods
run: |
gem install cocoapods
pod repo add-cdn trunk https://cdn.cocoapods.org/
- name: Lint and Test Cocoa Pod
run: pod lib lint --private --allow-warnings --verbose --fail-fast --skip-tests