-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (51 loc) · 1.88 KB
/
build_and_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build
# Run this on pushes to `master`, or when a pull request is opened against `master`
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test on ${{ matrix.name }}
runs-on: macOS-latest
strategy:
fail-fast: false
matrix:
# GitHub Actions requires a single row to be added to the build matrix.
# For more info:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
# This approach based on:
# https://github.com/DaanDeMeyer/reproc/blob/master/.github/workflows/main.yml
name: [
macOS,
iOS
]
include:
- name: macOS
destination: 'platform=macOS'
- name: iOS
destination: 'platform=iOS Simulator,name=iPhone 11,OS=13.1'
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Select Xcode 11.1
run: sudo xcode-select -switch /Applications/Xcode_11.1.app
- name: PLRelational
run: |
cd PLRelational
set -o pipefail && xcodebuild clean test -scheme PLRelational-${{ matrix.name }} -destination "${{ matrix.destination }}" | xcpretty
- name: PLRelationalCombine
run: |
cd PLRelationalCombine
set -o pipefail && xcodebuild clean test -scheme PLRelationalCombine-${{ matrix.name }} -destination "${{ matrix.destination }}" | xcpretty
- name: Examples > TodoApp-SwiftUI
run: |
cd Examples
set -o pipefail && xcodebuild clean build -scheme TodoApp-SwiftUI-${{ matrix.name }} -destination "${{ matrix.destination }}" | xcpretty
- name: Legacy > PLRelationalBinding
run: |
cd Legacy
set -o pipefail && xcodebuild clean test -scheme PLRelationalBinding-${{ matrix.name }} -destination "${{ matrix.destination }}" | xcpretty