-
Notifications
You must be signed in to change notification settings - Fork 9
89 lines (84 loc) · 2.05 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: "CI"
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
RUBY_VERSION: 3.1.x
SKIP_SWIFTLINT: YES
jobs:
macOS:
name: macOS
runs-on: macOS-latest
env:
SWIFTLINT_VERSION: 0.52.2
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Bundler
run: |
gem install bundler
bundle install --without=documentation
- name: Swift
uses: fwal/setup-swift@v1
- name: Preparation
run: set -o pipefail
- name: Build
run: make build
- name: Test
run: make test
- name: Test Demo
run: make test_demo
- name: Danger
continue-on-error: true
run: bundle exec danger --remove-previous-comments
linux:
name: Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Bundler
run: |
gem install bundler
bundle install --without=documentation
- name: Swift
uses: fwal/setup-swift@v1
- name: Preparation
run: set -o pipefail
- name: Build
run: make build
- name: Test
run: make test
CocoaPods:
name: CocoaPods
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Bundler
run: |
gem install bundler
bundle install --without=documentation
- name: Spec Lint
continue-on-error: true
run: bundle exec pod spec lint
- name: Lib Lint
run: bundle exec pod lib lint --skip-tests --allow-warnings --verbose