Skip to content

Commit

Permalink
Add config for GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1028 committed Oct 22, 2019
1 parent 1453cf8 commit a3683f4
Showing 1 changed file with 53 additions and 0 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 CI
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 X' 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

0 comments on commit a3683f4

Please sign in to comment.