-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (36 loc) · 1.11 KB
/
loom-tests.yml
File metadata and controls
45 lines (36 loc) · 1.11 KB
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
41
42
43
44
45
# This workflow runs tests with a fresh Loom build from shipilev.net
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: Loom Build Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
# Run nightly at 2:00 AM UTC to detect breaking changes in Loom JDK
- cron: '0 2 * * *'
jobs:
test-with-loom:
runs-on: ubuntu-latest
container:
image: shipilev/openjdk:loom
steps:
- uses: actions/checkout@v6
- name: Install Maven
run: |
apt-get update
apt-get install -y maven
- name: Verify Java version
run: |
java -version
- name: Verify Java version in Maven
run: |
mvn --version
- name: Cache Maven packages
uses: actions/cache@v5
with:
path: /github/home/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B verify --file pom.xml -DargLine="--enable-preview" -P '!dev'