-
Notifications
You must be signed in to change notification settings - Fork 25
37 lines (34 loc) · 1.15 KB
/
Copy pathci.yml
File metadata and controls
37 lines (34 loc) · 1.15 KB
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- created
permissions:
actions: write
contents: read
jobs:
build-and-test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Cache dependencies
uses: actions/cache@v4.1.0
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-stable-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-stable-
- name: Install Carthage dependencies
if: steps.carthage-cache.outputs.cache-hit != 'true'
run: echo 'BUILD_LIBRARY_FOR_DISTRIBUTION=YES'>/tmp/config.xcconfig; XCODE_XCCONFIG_FILE=/tmp/config.xcconfig carthage update --platform iOS --new-resolver --no-use-binaries --cache-builds; rm /tmp/config.xcconfig
- name: Clean and build the GetStream scheme
run: xcodebuild clean test -project GetStream.xcodeproj -scheme GetStream-iOS -destination "platform=iOS Simulator,name=iPhone 11 Pro"
- name: Post Codecov report
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}