Skip to content

Commit a7d794f

Browse files
authoredMar 27, 2021
Merge pull request #161 from danger/ci_with_actions
Create ci.yml
2 parents 9c5a474 + 8ee306d commit a7d794f

File tree

2 files changed

+50
-32
lines changed

2 files changed

+50
-32
lines changed
 

‎.github/workflows/ci.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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 }}

‎.travis.yml

-32
This file was deleted.

0 commit comments

Comments
 (0)