Skip to content

Commit

Permalink
build(ci): test with multiple java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Jan 20, 2024
1 parent 8ed1d6a commit 666de9d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
java-version: [ 8, 11, 17, 21 ]

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

- name: Setup JDK 11
uses: actions/setup-java@v2
- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
java-version: ${{ matrix.java-version }}

- name: Print Java Version
run: java --version
Expand Down

0 comments on commit 666de9d

Please sign in to comment.