File tree 2 files changed +50
-32
lines changed
2 files changed +50
-32
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on : pull_request
4
+
5
+ jobs :
6
+ build :
7
+ strategy :
8
+ matrix :
9
+ os : [ubuntu-latest, macos-latest]
10
+
11
+ runs-on : ${{ matrix.os }}
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - uses : sdkman/sdkman-action@master
17
+ with :
18
+ candidate : gradle
19
+ version : 6.7.1
20
+
21
+ - name : Install Kotlin
22
+ run : |
23
+ curl -o kotlin-compiler.zip -L https://github.com/JetBrains/kotlin/releases/download/v1.4.20/kotlin-compiler-1.4.20.zip
24
+
25
+ if [[ "$OSTYPE" != "darwin"* ]]
26
+ then
27
+ sudo chmod -R a+rwx /usr/local/
28
+ fi
29
+
30
+ unzip -d /usr/local/bin kotlin-compiler.zip
31
+ echo "/usr/local/bin/kotlinc/bin" >> $GITHUB_PATH
32
+ rm -rf kotlin-compiler.zip
33
+
34
+ - uses : actions/setup-node@v2
35
+ with :
36
+ node-version : ' 10'
37
+
38
+ - name : Install Danger JS
39
+ run : npm install -g danger
40
+
41
+ - name : Install Danger Kotlin
42
+ run : make install
43
+
44
+ - name : Run tests
45
+ run : gradle danger-kotlin-library:test
46
+
47
+ - name : Run Danger-Kotlin
48
+ run : DEBUG='*' danger-kotlin ci
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments