Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CURATOR-624: Fix Github Actions by adding 'distribution' for JDK setup step #407

Merged
merged 4 commits into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .github/workflows/ci-unit-jdk8.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under the License.
#

name: CI - Tests JDK 11
name: CI
on:
push:
pull_request:
Expand All @@ -32,18 +32,32 @@ jobs:
name:
runs-on: ubuntu-latest
timeout-minutes: 120
strategy:
matrix:
java:
- '8'
- '11'

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK 11
- name: Cache Local Maven Repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: 11
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build
- name: Build with ${{ matrix.java }}
run: mvn -B clean install -DskipTests

- name: Test
- name: Test with ${{ matrix.java }}
run: mvn -B verify