From f20c4824a43e0c84c02f40f4140aceba94d6cafb Mon Sep 17 00:00:00 2001 From: Ulli Hafner Date: Thu, 11 Aug 2022 18:26:52 +0200 Subject: [PATCH] Let CI run with JDK 11 and 17. --- .github/workflows/ci.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00442b37..e8f925aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: 'GitHub CI' on: push: branches: + - master - main pull_request: @@ -12,20 +13,21 @@ jobs: strategy: matrix: platform: [ubuntu-latest, macos-latest, windows-latest] + jdk: [11, 17] runs-on: ${{ matrix.platform }} - name: on ${{ matrix.platform }} + name: on ${{ matrix.platform }} with JDK ${{ matrix.jdk }} steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - distribution: 'temurin' - java-version: '11' - check-latest: true - cache: 'maven' - - name: Build with Maven - env: - BROWSER: chrome-container - run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip' + - uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.jdk }} + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '${{ matrix.jdk }}' + check-latest: true + cache: 'maven' + - name: Build with Maven + env: + BROWSER: chrome-container + run: mvn -V -ntp clean verify --file pom.xml '-Djenkins.test.timeout=5000' '-Dgpg.skip'