Skip to content

Update Gradle CI workflows for 1.x branches and Java versions #2

Update Gradle CI workflows for 1.x branches and Java versions

Update Gradle CI workflows for 1.x branches and Java versions #2

Workflow file for this run

name: Gradle Build
on:
push:
branches: [ 'dev-1.x' ]
pull_request:
branches: [ 'dev-1.x' , 'release-1.x' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11' , '17' , '21' , '25' ]
steps:
- name: Checkout Source
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.Java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew build test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: microsphere-projects/microsphere-apidocs