-
Notifications
You must be signed in to change notification settings - Fork 74
40 lines (36 loc) · 1.13 KB
/
test-ea.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
33
34
35
36
37
38
39
40
---
name: Run tests against early access versions of JDK
on:
push:
branches: [master]
workflow_dispatch:
# Cancel existing executions when new commits are pushed onto the branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
java: ['EA', 'loom', 'valhalla']
os: [ubuntu, windows]
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: 'Set up latest JDK N from jdk.java.net'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.java }}
- name: Build with Maven
run: |
sed -i 's/<!-- formatter_plugin_begin -->/<!-- formatter_plugin_begin/g' pom.xml
sed -i 's/<!-- formatter_plugin_end -->/ formatter_plugin_end -->/g' pom.xml
mvn -B verify --file pom.xml