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