Skip to content

Commit

Permalink
Merge pull request #765 from SentryMan/patch-1
Browse files Browse the repository at this point in the history
Add GA/EA versions to build pipeline
  • Loading branch information
ascopes authored Dec 16, 2024
2 parents bf1f8ad + 58e2a2d commit a5bd97e
Showing 2 changed files with 66 additions and 2 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/build-EA.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build Latest

on:
pull_request:
branches:
- main
types:
- opened
- synchronize
push:
branches:
- main
workflow_call: {}
workflow_dispatch: {}

jobs:
build:
name: Build on JDK ${{ matrix.java-version }} (${{ matrix.os-name }})
runs-on: ${{ matrix.os-name }}

strategy:
fail-fast: false
matrix:
os-name: [ubuntu-latest]
java-version:
- GA # Latest GA JDK
- EA # Current Mainline
include:
- os-name: macos-latest
java-version: GA
- os-name: windows-latest
java-version: GA

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Initialize JDK
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java_version }}

- name: Compile and run tests
shell: bash
run: ./mvnw -B -U clean verify

- name: Upload to codecov
uses: codecov/codecov-action@v4
with:
name: tests-java-${{ matrix.java-version }}-os-${{ matrix.os-name }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Stash reports
uses: actions/upload-artifact@v4
if: always()
with:
name: reports-${{ matrix.java-version }}-${{ matrix.os-name }}
if-no-files-found: error
path: |
**/surefire-reports/**
**/failsafe-reports/**
**/build*.log
retention-days: 30
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -26,8 +26,6 @@ jobs:
- 11 # LTS
- 17 # LTS
- 21 # LTS
- 23
#- 24-ea
include:
- os-name: macos-latest
java-version: 23

0 comments on commit a5bd97e

Please sign in to comment.