-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (45 loc) · 1.36 KB
/
default.yml
File metadata and controls
50 lines (45 loc) · 1.36 KB
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
name: Default
on: [push]
jobs:
build:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Carthage modules
uses: actions/cache@v1
id: carthage-cache
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
- name: Bundle Install
run: |
bundle install
- name: Use Swift 5.2.4
uses: YOCKOW/Action-setup-swift@master
with:
swift-version: '5.2.4'
- name: Carthage update
if: steps.carthage-cache.outputs.cache-hit != 'true'
run: |
brew install automake autoconf libtool gettext libevent openssl
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
carthage bootstrap --platform iOS --cache-builds --toolchain org.swift.520202003241a
test:
needs: [build]
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Carthage modules
uses: actions/cache@v1
with:
path: Carthage
key: ${{ runner.os }}-carthage-${{ hashFiles('**/Cartfile.resolved') }}
- name: Use Swift 5.2.4
uses: YOCKOW/Action-setup-swift@master
with:
swift-version: '5.2.4'
- name: Run tests
run: |
fastlane test