-
Notifications
You must be signed in to change notification settings - Fork 27
46 lines (41 loc) · 1.34 KB
/
ci.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
name: Build
on: [push, pull_request]
jobs:
build-macos:
runs-on: macOS-11
steps:
# Checks-out the repo. More at: https://github.com/actions/checkout
- uses: actions/checkout@v2
- name: Run on Xcode 11
run: sudo xcode-select -switch /Applications/Xcode_11.7.app
- name: Generate linux tests
# Makes sure the linux tests were generated properly (can only be run on macOS)
run: swift test --generate-linuxmain && git update-index --refresh && git diff-index --quiet HEAD --
- name: Test in Debug
run: swift test -c debug
- name: Test in Release
run: swift test -c release
build-macos-xcode-12:
runs-on: macOS-11
steps:
# Checks-out the repo. More at: https://github.com/actions/checkout
- uses: actions/checkout@v2
- name: Run on Xcode 12
run: sudo xcode-select -switch /Applications/Xcode_12.4.app
- name: Test in Debug
run: swift test -c debug
- name: Test in Release
run: swift test -c release
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Didstopia/[email protected]
with:
swift-action: 'test'
validate-podspec:
runs-on: macOS-11
steps:
- uses: actions/checkout@v2
- name: Validate Podspec
run: bundle install && bundle exec pod lib lint --verbose --fail-fast