Skip to content

Commit 2c45599

Browse files
committed
Remove Travis, Add github actions script
1 parent 3e96287 commit 2c45599

2 files changed

Lines changed: 42 additions & 26 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Kotlin SDK CI with Gradle
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Set up JDK 8
14+
uses: actions/setup-java@v4
15+
with:
16+
distribution: 'oracle'
17+
java-version: '8'
18+
19+
- name: Prepare Cloudinary URL
20+
id: cloudinary
21+
run: |
22+
CLOUDINARY_URL=$(bash tools/get_test_cloud.sh)
23+
echo "CLOUDINARY_URL=$CLOUDINARY_URL" >> $GITHUB_ENV
24+
echo "cloud_name: $(echo $CLOUDINARY_URL | cut -d'@' -f2)"
25+
26+
- name: Clean Gradle plugin cache
27+
run: |
28+
rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
29+
rm -fr $HOME/.gradle/caches/*/plugin-resolution/
30+
31+
- name: Cache Gradle
32+
uses: actions/cache@v4
33+
with:
34+
path: |
35+
~/.gradle/caches
36+
~/.gradle/wrapper
37+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
38+
restore-keys: |
39+
${{ runner.os }}-gradle-
40+
41+
- name: Run tests
42+
run: ./gradlew clean test

‎.travis.yml‎

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)