-
Notifications
You must be signed in to change notification settings - Fork 1
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 #4 from ogaoga/github-actions
Increment version and build number, and add GitHub Actions
- Loading branch information
Showing
3 changed files
with
36 additions
and
4 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,30 @@ | ||
name: Build and Unit Test | ||
|
||
on: | ||
# Triggers the workflow on pull request events but only for the main branch | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
# Select Xcode version | ||
- name: Select Xcode version | ||
run: sudo xcode-select -s '/Applications/Xcode_12.4.app/Contents/Developer' | ||
- name: Show Xcode version | ||
run: xcodebuild -version | ||
# Run build | ||
- name: Build | ||
run: xcodebuild | ||
-sdk iphonesimulator | ||
-configuration Debug | ||
build | ||
# Run unit test | ||
- name: Run tests | ||
run: xcodebuild | ||
-scheme UITabBrowser | ||
-sdk iphonesimulator | ||
-destination 'platform=iOS Simulator,name=iPhone 12 mini' | ||
clean test |
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
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