Skip to content

Commit

Permalink
ci: Build-only Java 8 job
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Jun 26, 2024
1 parent c6beb31 commit 51c7955
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,26 @@ permissions:
statuses: write

jobs:
build:
compile:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java: [8, 11]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: maven
- name: Compile with Maven
run: mvn -e --batch-mode compile

verify:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand All @@ -35,7 +54,7 @@ jobs:
distribution: 'corretto'
java-version: ${{ matrix.java }}
cache: maven
- name: Build with Maven
- name: Test with Maven
run: mvn -e --batch-mode clean verify
- name: Run Codecov
uses: codecov/codecov-action@v4
Expand Down

0 comments on commit 51c7955

Please sign in to comment.