Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Run tests on multiple JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
rgallardo-netflix committed Aug 31, 2023
1 parent 1de4146 commit 473dca7
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/nebula-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against JDK 8
java: [ 8 ]
# test against JDK 8, 17 and 19. We should add 22 soon, too.
java: [ 8 17 19]
name: CI with Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
Expand All @@ -22,7 +20,10 @@ jobs:
- name: Setup jdk
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
# Install both the version we'll test with AND 8, which goes later so that it's the default for gradle to run with.
java-version: |
${{ matrix.java }}
8
distribution: 'zulu'
- uses: actions/cache@v3
id: gradle-cache
Expand All @@ -39,7 +40,7 @@ jobs:
restore-keys: |
- ${{ runner.os }}-gradlewrapper-
- name: Build with Gradle
run: ./gradlew --info --stacktrace build
run: ./gradlew --info --stacktrace -PtestJdk=${{matrix.java}} build
env:
CI_NAME: github_actions
CI_BUILD_NUMBER: ${{ github.sha }}
Expand Down

0 comments on commit 473dca7

Please sign in to comment.