forked from ra1028/DifferenceKit
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ra1028#84 from ra1028/github-actions
Use GitHub Actions CI instead of azure-pipeline
- Loading branch information
Showing
3 changed files
with
54 additions
and
72 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,53 @@ | ||
name: GitHub Actions | ||
on: push | ||
jobs: | ||
linux: | ||
name: Test on linux | ||
runs-on: ubuntu-18.04 | ||
container: | ||
image: swift:${{ matrix.swift_version }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
swift_version: ["4.2", "5.0", "5.1"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Show environments | ||
run: | | ||
swift --version | ||
- name: Swift test | ||
run: | | ||
swift build | ||
swift test | ||
macOS: | ||
name: Test on macOS | ||
runs-on: macOS-10.14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
xcode_version: ["10.1", "10.2", "11.1"] | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Show environments | ||
run: | | ||
swift --version | ||
xcodebuild -version | ||
- name: Swift test | ||
run: | | ||
swift build | ||
swift test | ||
- name: Xcode maxOS | ||
run: | | ||
set -o pipefail && xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c | ||
- name: Xcode iOS | ||
run: | | ||
set -o pipefail && xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' ENABLE_TESTABILITY=YES | xcpretty -c | ||
- name: Xcode tvOS | ||
run: | | ||
set -o pipefail && xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES | xcpretty -c | ||
- name: Xcode watchOS | ||
run: | | ||
set -o pipefail && xcodebuild build -scheme DifferenceKit -configuration Release -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 40mm' ENABLE_TESTABILITY=YES | xcpretty -c |
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 was deleted.
Oops, something went wrong.