Skip to content

Commit 200228b

Browse files
committed
Intial support of Github Actions
1 parent a53af5b commit 200228b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ master ]
5+
pull_request:
6+
branches: [ master ]
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
strategy:
12+
matrix:
13+
run-config:
14+
- { xcode_version: '10.3', simulator: 'name=iPad (5th generation),OS=12.4' }
15+
- { xcode_version: '10.3', simulator: 'name=iPhone X,OS=12.4' }
16+
- { xcode_version: '11.7', simulator: 'name=iPad Air (3rd generation),OS=13.7' }
17+
- { xcode_version: '11.7', simulator: 'name=iPhone 11 Pro,OS=13.7' }
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Install XCPretty
23+
run: gem install xcpretty --no-document --quiet
24+
25+
- name: Show Xcode versions
26+
run: ls -al /Applications/Xcode*
27+
28+
- name: Run a multi-line script
29+
run: |
30+
set -e
31+
export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.run-config['xcode_version'] }}.app/Contents/Developer
32+
env NSUnbufferedIO=YES xcodebuild test -project SwiftiumTestingKit.xcodeproj -scheme STKTestApp -derivedDataPath=${PWD}/DerivedData -destination "platform=iOS Simulator,${{ matrix.run-config['simulator'] }}" | xcpretty -c
33+

0 commit comments

Comments
 (0)