Skip to content

Commit a5bd97e

Browse files
authored
Merge pull request #765 from SentryMan/patch-1
Add GA/EA versions to build pipeline
2 parents bf1f8ad + 58e2a2d commit a5bd97e

2 files changed

Lines changed: 66 additions & 2 deletions

File tree

.github/workflows/build-EA.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Build Latest
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types:
8+
- opened
9+
- synchronize
10+
push:
11+
branches:
12+
- main
13+
workflow_call: {}
14+
workflow_dispatch: {}
15+
16+
jobs:
17+
build:
18+
name: Build on JDK ${{ matrix.java-version }} (${{ matrix.os-name }})
19+
runs-on: ${{ matrix.os-name }}
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
os-name: [ubuntu-latest]
25+
java-version:
26+
- GA # Latest GA JDK
27+
- EA # Current Mainline
28+
include:
29+
- os-name: macos-latest
30+
java-version: GA
31+
- os-name: windows-latest
32+
java-version: GA
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 2
39+
40+
- name: Initialize JDK
41+
uses: oracle-actions/setup-java@v1
42+
with:
43+
website: jdk.java.net
44+
release: ${{ matrix.java_version }}
45+
46+
- name: Compile and run tests
47+
shell: bash
48+
run: ./mvnw -B -U clean verify
49+
50+
- name: Upload to codecov
51+
uses: codecov/codecov-action@v4
52+
with:
53+
name: tests-java-${{ matrix.java-version }}-os-${{ matrix.os-name }}
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
56+
- name: Stash reports
57+
uses: actions/upload-artifact@v4
58+
if: always()
59+
with:
60+
name: reports-${{ matrix.java-version }}-${{ matrix.os-name }}
61+
if-no-files-found: error
62+
path: |
63+
**/surefire-reports/**
64+
**/failsafe-reports/**
65+
**/build*.log
66+
retention-days: 30

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
- 11 # LTS
2727
- 17 # LTS
2828
- 21 # LTS
29-
- 23
30-
#- 24-ea
3129
include:
3230
- os-name: macos-latest
3331
java-version: 23

0 commit comments

Comments
 (0)