-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathaction.yml
More file actions
29 lines (28 loc) · 988 Bytes
/
action.yml
File metadata and controls
29 lines (28 loc) · 988 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
name: 'Setup'
description: 'Setup java and xvfb'
runs:
using: 'composite'
steps:
- name: Set up JDK 21
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #v4.7.1
with:
distribution: temurin
java-version: '21'
- name: Cache local Maven repository
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 #v5.0.4
with:
path: |
~/.m2/repository
net.sourceforge.pmd.eclipse.plugin/japicmp-data
# re-cache on changes in the pom and target files
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml', '**/*.target') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup xvfb
if: ${{ runner.os == 'Linux' }}
shell: bash
run: |
#see https://github.com/GabrielBB/xvfb-action
sudo apt-get install --yes xvfb
sudo apt-get install --yes libgtk2.0-0
echo 'xvfb_cmd=xvfb-run --auto-servernum' >> "$GITHUB_ENV"