-
Notifications
You must be signed in to change notification settings - Fork 341
45 lines (37 loc) · 1.27 KB
/
ci.yml
File metadata and controls
45 lines (37 loc) · 1.27 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
name: CI
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
name: Build & Test (Java 25)
runs-on: ubuntu-latest
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Set up JDK 25
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
cache: maven
# JOGL opens a display connection during class initialisation even in
# headless mode on some paths. xvfb provides a virtual framebuffer so
# those code paths don't abort with "no display" errors on the runner.
- name: Install Xvfb
run: sudo apt-get install -y xvfb
- name: Compile
run: mvn --batch-mode --no-transfer-progress compile
- name: Test
# AWT headless is already set via maven-surefire-plugin in pom.xml;
# xvfb-run provides a fallback display for any JOGL-initialising tests.
run: xvfb-run --auto-servernum mvn --batch-mode --no-transfer-progress test
- name: Upload test reports on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: surefire-reports-java25
path: target/surefire-reports/
retention-days: 7