From 3d86a2f9b4eb695e7d171304904756c2e6687317 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Tue, 8 Jul 2025 09:10:47 +0300 Subject: [PATCH 1/5] Add github actions script --- .github/workflows/build.yml | 63 +++++++++++++++++++++++++++++++++++++ .travis.yml | 36 --------------------- 2 files changed, 63 insertions(+), 36 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..ae3a34d8 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,63 @@ +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-20.04 # or ubuntu-latest + + strategy: + matrix: + java: [ '8', '9', '10', '11' ] + module: [ 'core', 'http5' ] + + 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 + + - name: Notify by email on failure (optional) + if: failure() + uses: dawidd6/action-send-mail@v3 + with: + server_address: smtp.example.com # 🔧 Replace with actual SMTP server + server_port: 465 + username: ${{ secrets.SMTP_USERNAME }} + password: ${{ secrets.SMTP_PASSWORD }} + subject: "Build Failed: Java SDK CI" + body: "CI build failed for module '${{ matrix.module }}' on JDK '${{ matrix.java }}'" + to: sdk_developers@cloudinary.com + from: GitHub Actions diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8a1fec22..00000000 --- a/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: java -dist: trusty - -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ - -jdk: - - oraclejdk8 - - oraclejdk9 - - oraclejdk11 - - openjdk8 - - openjdk10 - -env: - - MODULE=core - - MODULE=http5 - -branches: - except: - - staging-test - -before_script: ./gradlew createTestSubAccount -PmoduleName=${MODULE} - -# ciTest is configured to skip the various timeout tests that don't work in travis -script: source tools/cloudinary_url.txt && ./gradlew -DCLOUDINARY_URL=$CLOUDINARY_URL ciTest -p cloudinary-${MODULE} -i - - -notifications: - email: - recipients: - - sdk_developers@cloudinary.com From 2e3ec4cb77fa3e9717a529878655a630d3025fff Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Tue, 8 Jul 2025 09:12:19 +0300 Subject: [PATCH 2/5] Fix github actions script --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae3a34d8..37093d24 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: jobs: build: name: Test ${{ matrix.module }} on JDK ${{ matrix.java }} - runs-on: ubuntu-20.04 # or ubuntu-latest + runs-on: ubuntu-latest strategy: matrix: From f76706dd2093076a4043acf5e6bdad97806ee831 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Tue, 8 Jul 2025 09:12:34 +0300 Subject: [PATCH 3/5] Fix github actions script --- .github/workflows/build.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 37093d24..00f02bbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,17 +47,4 @@ jobs: - name: Load CLOUDINARY_URL and run ciTest run: | source tools/cloudinary_url.txt - ./gradlew -DCLOUDINARY_URL=$CLOUDINARY_URL ciTest -p cloudinary-${{ matrix.module }} -i - - - name: Notify by email on failure (optional) - if: failure() - uses: dawidd6/action-send-mail@v3 - with: - server_address: smtp.example.com # 🔧 Replace with actual SMTP server - server_port: 465 - username: ${{ secrets.SMTP_USERNAME }} - password: ${{ secrets.SMTP_PASSWORD }} - subject: "Build Failed: Java SDK CI" - body: "CI build failed for module '${{ matrix.module }}' on JDK '${{ matrix.java }}'" - to: sdk_developers@cloudinary.com - from: GitHub Actions + ./gradlew -DCLOUDINARY_URL=$CLOUDINARY_URL ciTest -p cloudinary-${{ matrix.module }} -i \ No newline at end of file From 3a4feae464f32e40de51c7813055b227027f3797 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Tue, 8 Jul 2025 09:12:56 +0300 Subject: [PATCH 4/5] Fix github actions script --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00f02bbb..c8345745 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - java: [ '8', '9', '10', '11' ] + java: ['8'] module: [ 'core', 'http5' ] steps: From 8078771a97b28d94777c51b9dbeeca4e349b8c31 Mon Sep 17 00:00:00 2001 From: adimiz1 Date: Tue, 8 Jul 2025 09:17:27 +0300 Subject: [PATCH 5/5] Add taglib --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8345745..33920489 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: java: ['8'] - module: [ 'core', 'http5' ] + module: [ 'core', 'http5', 'taglib' ] steps: - name: Checkout code pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy