-
Notifications
You must be signed in to change notification settings - Fork 197
40 lines (40 loc) · 1.27 KB
/
ci-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
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
name: Run Test Cases
jobs:
test-on-mac:
runs-on: macos-12
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
# - name: Setup Ruby 3.2
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: '3.2'
# - name: Setup Environment
# run: |
# gem install cocoapods --pre --no-document
# rm -rf $HOME/.cocoapods
# pod setup --silent
# pod install --silent --no-repo-update
- name: setup-cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: 1.14.2
- name: Run Cases
env:
QINIU_TEST_ENV: travis
run: |
rm -rf $HOME/.cocoapods
pod setup --silent
pod install --silent --no-repo-update
xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_iOS -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 14 Pro' -enableCodeCoverage YES
xcodebuild test -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_Mac -configuration Debug -destination 'platform=macOS,arch=x86_64'
bash <(curl -s https://codecov.io/bash)