-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.17 KB
/
test.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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: test
on:
pull_request:
branches:
- master
- dev
# Only run if src, pom or github actions files change
# Other changes like docs / readme / license don't require tests to be re-run
paths:
- 'src/**'
- 'pom.xml'
- '.github/**'
push:
branches:
- master
paths:
- 'src/**'
- 'pom.xml'
- '.github/**'
# Prevent multiple runs of the same workflow on the same branch at the same time
# e.g. if new commits pushed to a PR, will cancel any current runs before starting
# a new one
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
# Cancel jobs after 30 minutes
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'
cache: maven
# - name: Install blosc
# run: sudo apt install libblosc-dev
- name: Install xvfb
run: sudo apt-get install xvfb
- name: Build with maven
run: xvfb-run --auto-servernum mvn -B package --file pom.xml