diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 1dddcc4..19db36f 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -15,18 +15,20 @@ on: jobs: build: - - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + java-version: [ 17, 20 ] + os: [ macos-latest, ubuntu-latest, windows-latest ] permissions: contents: read steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '17' - distribution: 'temurin' + java-version: ${{ matrix.java-version }} - name: Set up node uses: actions/setup-node@v4 with: