Skip to content

Commit a6014fe

Browse files
authored
CI: Separate out Xcode and cocapods tests (#88)
1 parent dd25f7b commit a6014fe

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
swift-version: [5.2.4, 5.1]
1515
name: Swift ${{ matrix.swift-version }} on ${{ matrix.os }}
1616
runs-on: ${{ matrix.os }}
17-
1817
steps:
1918
- name: Checkout
2019
uses: actions/checkout@v2
@@ -30,13 +29,26 @@ jobs:
3029
swift build --enable-test-discovery
3130
- name: Test
3231
run: swift test --enable-test-discovery --parallel
32+
33+
xcode:
34+
name: Xcode project and Cocoapod
35+
runs-on: macos-latest
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
3339
- name: Test Xcodeproject
34-
if: matrix.os == 'macos-latest'
3540
run: |
41+
set -eo pipefail
3642
gem install xcpretty-travis-formatter
43+
xcodebuild -version
3744
xcodebuild test -scheme SwiftShell | xcpretty -f `xcpretty-travis-formatter`
45+
- name: Test Xcodeproject in Xcode 12 beta
46+
run: |
47+
set -eo pipefail
48+
sudo xcode-select -s /Applications/Xcode_12_beta.app
49+
xcodebuild -version
50+
xcodebuild test -scheme SwiftShell | xcpretty -f `xcpretty-travis-formatter`
3851
- name: Test Cocoapod
39-
if: matrix.os == 'macos-latest'
4052
run: |
4153
pod repo update --silent
4254
pod lib lint --allow-warnings

0 commit comments

Comments
 (0)