File tree 6 files changed +34
-11
lines changed
6 files changed +34
-11
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ on: pull_request
4
4
5
5
jobs :
6
6
danger :
7
-
8
7
runs-on : macos-latest
9
-
10
8
steps :
11
9
- uses : actions/checkout@v2
12
10
with :
@@ -28,13 +26,21 @@ jobs:
28
26
restore-keys : |
29
27
${{ runner.os }}-gem-
30
28
31
- - name : Cache Mint packages
29
+ - name : Cache Mint Builds
32
30
uses : actions/cache@v1
33
31
with :
34
32
path : ${{ env.MINT_PATH }}
35
- key : ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }}
33
+ key : ${{ runner.os }}-mint-build-${{ env.SWIFTLINT_VERSION }}
34
+ restore-keys : |
35
+ ${{ runner.os }}-mint-build-
36
+
37
+ - name : Cache Mint Links
38
+ uses : actions/cache@v1
39
+ with :
40
+ path : ${{ env.MINT_LINK_PATH }}
41
+ key : ${{ runner.os }}-mint-link-${{ env.SWIFTLINT_VERSION }}
36
42
restore-keys : |
37
- ${{ runner.os }}-mint-
43
+ ${{ runner.os }}-mint-link-
38
44
39
45
- name : Bundle install
40
46
run : |
@@ -45,12 +51,14 @@ jobs:
45
51
- name : Install Mint and Packages
46
52
run : |
47
53
brew install mint
48
- mint bootstrap --link
54
+ mint install realm/SwiftLint@${{ env.SWIFTLINT_VERSION }}
49
55
50
56
- name : Run Danger
51
57
run : bundle exec danger
52
58
env :
53
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
60
55
61
env :
56
- MINT_PATH : mint
62
+ MINT_PATH : ${{ github.workspace }}/mint
63
+ MINT_LINK_PATH : ${{ github.workspace }}/mint/bin
64
+ SWIFTLINT_VERSION : 0.39.1
Original file line number Diff line number Diff line change
1
+ name : Swift-Build
2
+ on : [push, pull_request]
3
+ jobs :
4
+ test :
5
+ runs-on : macos-latest
6
+ steps :
7
+ - uses : actions/checkout@v2
8
+ with :
9
+ submodules : recursive
10
+
11
+ - name : Xcode select
12
+ run : sudo xcode-select -s /Applications/Xcode_11.4.app
13
+
14
+ - name : Build and Test
15
+ run : |
16
+ swift test
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Xcode-Build
2
2
on : [push, pull_request]
3
3
jobs :
4
4
test :
5
-
6
5
runs-on : macos-latest
7
-
8
6
steps :
9
7
- uses : actions/checkout@v2
10
8
with :
Original file line number Diff line number Diff line change 1
1
github . dismiss_out_of_range_messages
2
2
swiftlint . config_file = '.swiftlint.yml'
3
+ swiftlint . binary_path = './mint/bin/swiftlint'
3
4
swiftlint . lint_files ( inline_mode : true )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# KeyHolder
2
+ ![ CI] ( https://github.com/Clipy/KeyHolder/workflows/Xcode-Build/badge.svg )
2
3
[ ![ Release version] ( https://img.shields.io/github/release/Clipy/KeyHolder.svg )] ( https://github.com/Clipy/KeyHolder/releases/latest )
3
4
[ ![ License: MIT] ( https://img.shields.io/github/license/Clipy/KeyHolder.svg )] ( https://github.com/Clipy/KeyHolder/blob/master/LICENSE )
4
5
[ ![ Carthage compatible] ( https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat )] ( https://github.com/Carthage/Carthage )
You can’t perform that action at this time.
0 commit comments