-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.31 KB
/
swift.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
name: propromo.ios CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-latest
# Use macos-latest and trust this action to always work
# This because GitHub deprecate old environments, so if you want your CI to continue to work in 5 years you need to use latest
# This makes specifying specific xcode versions problematic however, we haven’t got a good story for this yet.
strategy:
matrix:
platform:
- iOS
#xcode:
#- ^11
#- ^12
#- ^13
# Not supported yet:
#- ^14
#- ^15
# 11-13 tests IOS 13-15
# https://flatgithub.com/mxcl/.github/?filename=versions.json&sha=7f6f9803a64ce8a542970f9f04eb1b39b8b76946
# https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#xcode
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Versions:
# https://xcodereleases.com/
# https://developer.apple.com/support/xcode/
- name: Xcode Tests
uses: mxcl/xcodebuild@v1
with:
#xcode: ${{ matrix.xcode }}
platform: ${{ matrix.platform }}
action: test # `build`
code-coverage: true # default = `false`
warnings-as-errors: false # default = `false`