Skip to content

Commit

Permalink
add a matrix of GHA for different java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 21, 2022
1 parent 5e0bbd9 commit 0c2ad76
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-java-17-test-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Build Java 17, Test Java 8

on: [workflow_dispatch]

jobs:
build:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '8'
LUCEE_BUILD_JAVA_VERSION: '17'
3 changes: 2 additions & 1 deletion .github/workflows/main-java-11.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test with Java 11
name: Build with Java 11

on: [workflow_dispatch]

Expand All @@ -7,3 +7,4 @@ jobs:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '11'
LUCEE_BUILD_JAVA_VERSION: '11'
3 changes: 2 additions & 1 deletion .github/workflows/main-java-17.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test with Java 17
name: Build with Java 17

on: [workflow_dispatch]

Expand All @@ -7,3 +7,4 @@ jobs:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '17'
LUCEE_BUILD_JAVA_VERSION: '17'
1 change: 1 addition & 0 deletions .github/workflows/main-java-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ jobs:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '8'
LUCEE_BUILD_JAVA_VERSION: '8'
8 changes: 6 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
LUCEE_TEST_JAVA_VERSION:
required: true
type: string
LUCEE_BUILD_JAVA_VERSION:
required: true
type: string
default: 8
push:
pull_request:
workflow_dispatch:
Expand Down Expand Up @@ -67,10 +71,10 @@ jobs:
- name: Stash Test Java Version Home
if: ${{ inputs.LUCEE_TEST_JAVA_VERSION != '' }}
run: echo "LUCEE_TEST_JAVA_EXEC=${{ env.JAVA_HOME }}/bin/java" >> $GITHUB_ENV
- name: Set up JDK 8
- name: Set up JDK '${{ inputs.LUCEE_BUILD_JAVA_VERSION }}'
uses: actions/setup-java@v2
with:
java-version: '8'
java-version: '${{ inputs.LUCEE_BUILD_JAVA_VERSION }}'
distribution: 'temurin'
- name: Cache Lucee extensions
uses: actions/cache@v2
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-java-11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Test with Java 11

on: [workflow_dispatch]

jobs:
build:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '11'
9 changes: 9 additions & 0 deletions .github/workflows/test-java-17.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Test with Java 17

on: [workflow_dispatch]

jobs:
build:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '17'
9 changes: 9 additions & 0 deletions .github/workflows/test-java-18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Test with Java 17

on: [workflow_dispatch]

jobs:
build:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '18'
9 changes: 9 additions & 0 deletions .github/workflows/test-java-8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Test with Java 8

on: [workflow_dispatch]

jobs:
build:
uses: ./.github/workflows/main.yml
with:
LUCEE_TEST_JAVA_VERSION: '8'

0 comments on commit 0c2ad76

Please sign in to comment.