-
Notifications
You must be signed in to change notification settings - Fork 54
32 lines (25 loc) · 949 Bytes
/
ci-pull.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: Java CI with Maven on Pull
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
# TODO Enable strategy for next Jakarta Release Cycle
# strategy:
# matrix:
# java-version: [ '21', '25-ea' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK 21 #${{ matrix.java-version }}
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: 21 #${{ matrix.java-version }}
distribution: 'temurin'
cache: maven
- name: Build API
run: mvn -B install --file pom.xml