Skip to content

Commit

Permalink
Merge branch 'addCI' into 'master'
Browse files Browse the repository at this point in the history
Add CI with Github Actions

See merge request aossie/agora-ios!28
  • Loading branch information
thuva4 committed May 29, 2020
2 parents 2d7b0f7 + 1ad08cd commit 4ce04c9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Swift

on:
push:
branches:
- master
- develop
- gsoc-2020
pull_request:
branches:
- master
- develop
- gsoc-2020

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- name: Clean Project
run: set -o pipefail && xcodebuild clean -project agora-ios.xcodeproj -scheme agora-ios | xcpretty
- uses: actions/cache@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
restore-keys: |
${{ runner.os }}-carthage-
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: carthage bootstrap --platform iOS --cache-builds

- name: Run tests
run: set -o pipefail && xcodebuild test -project agora-ios.xcodeproj -scheme agora-ios -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' | xcpretty
Binary file not shown.

0 comments on commit 4ce04c9

Please sign in to comment.