Skip to content

Commit 16e6520

Browse files
authored
Add github actions script
1 parent 3a624a8 commit 16e6520

File tree

2 files changed

+50
-36
lines changed

2 files changed

+50
-36
lines changed

.github/workflows/build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Java SDK Matrix CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- staging-test
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Test ${{ matrix.module }} on JDK ${{ matrix.java }}
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
java: ['8']
17+
module: [ 'core', 'http5', 'taglib' ]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up JDK ${{ matrix.java }}
24+
uses: actions/setup-java@v4
25+
with:
26+
distribution: 'adopt'
27+
java-version: ${{ matrix.java }}
28+
29+
- name: Clean Gradle plugin cache
30+
run: |
31+
rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
32+
rm -fr $HOME/.gradle/caches/*/plugin-resolution/
33+
34+
- name: Cache Gradle
35+
uses: actions/cache@v4
36+
with:
37+
path: |
38+
~/.gradle/caches
39+
~/.gradle/wrapper
40+
key: ${{ runner.os }}-gradle-${{ matrix.java }}-${{ matrix.module }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
41+
restore-keys: |
42+
${{ runner.os }}-gradle-
43+
44+
- name: Create test subaccount
45+
run: ./gradlew createTestSubAccount -PmoduleName=${{ matrix.module }}
46+
47+
- name: Load CLOUDINARY_URL and run ciTest
48+
run: |
49+
source tools/cloudinary_url.txt
50+
./gradlew -DCLOUDINARY_URL=$CLOUDINARY_URL ciTest -p cloudinary-${{ matrix.module }} -i

.travis.yml

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

0 commit comments

Comments
 (0)