Skip to content

Commit

Permalink
Merge pull request ra1028#84 from ra1028/github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions CI instead of azure-pipeline
  • Loading branch information
ra1028 committed Oct 22, 2019
2 parents 1453cf8 + 2d7d71b commit 00dc69b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 72 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
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
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ The algorithm is optimized based on the Paul Heckel's algorithm.
<a href="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/Carthage/Carthage"><img alt="Carthage" src="https://img.shields.io/badge/Carthage-compatible-yellow.svg"/></a>
<a href="https://swift.org/package-manager"><img alt="Swift Package Manager" src="https://img.shields.io/badge/SwiftPM-compatible-yellowgreen.svg"/></a>
</br>
<a href="https://dev.azure.
com/ra1028/GitHub/_build/latest?definitionId=1&branchName=master"><img alt="Build Status" src="https://dev.azure.com/ra1028/GitHub/_apis/build/status/ra1028.DifferenceKit?branchName=master"/></a>
<a href="https://github.com/ra1028/DifferenceKit/actions"><img alt="CI Status" src="https://github.com/ra1028/DifferenceKit/workflows/GitHub%20Actions/badge.svg"/></a>
<a href="https://developer.apple.com/"><img alt="Platform" src="https://img.shields.io/badge/platform-iOS%20%7C%20macOS%20%7C%20tvOS%20%7C%20watchOS%20%7C%20Linux-green.svg"/></a>
<a href="https://github.com/ra1028/DifferenceKit/blob/master/LICENSE"><img alt="Lincense" src="https://img.shields.io/badge/License-Apache%202.0-black.svg"/></a>
</p>
Expand Down
70 changes: 0 additions & 70 deletions azure-pipelines.yml

This file was deleted.

0 comments on commit 00dc69b

Please sign in to comment.