-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #678 from badoo/ci
Add github actions
- Loading branch information
Showing
3 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Swift | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Test Chatto | ||
run: ./scripts/test.sh chatto | ||
- name: Coverage for Chatto | ||
run: bash <(curl -s https://codecov.io/bash) -J 'Chatto' | ||
- name: Test ChattoAdditions | ||
run: ./scripts/test.sh additions | ||
- name: Coverage for ChattoAdditions | ||
run: bash <(curl -s https://codecov.io/bash) -J 'ChattoAdditions' | ||
- name: Test ChattoApp | ||
run: ./scripts/test.sh app |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
WORKSPACE='Chatto.xcworkspace' | ||
SCHEME='Chatto' | ||
|
||
case "$1" in | ||
chatto) ;; | ||
additions) | ||
SCHEME='ChattoAdditions' | ||
;; | ||
app) | ||
WORKSPACE='ChattoApp/ChattoApp.xcworkspace' | ||
SCHEME='ChattoApp' | ||
;; | ||
*) echo "Invalid operation" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
xcodebuild clean build test \ | ||
-workspace $WORKSPACE \ | ||
-scheme $SCHEME \ | ||
-sdk iphonesimulator \ | ||
-destination 'platform=iOS Simulator,name=iPhone 11' \ | ||
-configuration Debug | xcpretty |