-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (58 loc) · 1.58 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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: ${{ matrix.os }}
# Cancel jobs after 30 minutes
timeout-minutes: 30
strategy:
matrix:
# Run tests on ubuntu, mac (intel + M1) and windows
os: [
ubuntu-latest,
windows-latest,
macos-latest,
macos-13
]
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
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install xvfb
- name: Build with maven and xvfb
if: matrix.os == 'ubuntu-latest'
run: xvfb-run --auto-servernum mvn -B package --file pom.xml
- name: Build with maven
if: matrix.os != 'ubuntu-latest'
run: mvn -B package --file pom.xml