-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 890 Bytes
/
test-os.yml
File metadata and controls
41 lines (35 loc) · 890 Bytes
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
name: test-os
on:
push:
branches:
- master
tags:
- "*-[0-9]+.*"
pull_request:
branches:
- master
jobs:
mvn-verify:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
cache: 'maven'
# Linux-only setup: virtual display for headless AWT/Swing tests
- name: Linux dependencies (Xvfb)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y xvfb
Xvfb :99 -screen 0 1280x1024x24 &
echo "DISPLAY=:99" >> $GITHUB_ENV
# Run tests
- name: Run tests with Maven
run: mvn -B verify --file pom.xml