-
Notifications
You must be signed in to change notification settings - Fork 399
70 lines (64 loc) · 2.54 KB
/
Copy pathpull_request.yml
File metadata and controls
70 lines (64 loc) · 2.54 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
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: PR Build
on:
push:
branches:
- '!master'
pull_request:
branches:
- master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
testopenjdk:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Linux and Windows only (MacOS is quite close to Linux, so less of a risk)
os: [ubuntu-latest, windows-latest]
java: [17, 21]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: ${{ matrix.java }}
- name: Build and test (no integration tests)
# Integration tests are excluded here and run nightly instead, see
# nightly.yml. They depend on CATH, ECOD, RCSB, EBI and others being up
# and responsive, so running them on every pull request means a third
# party having a bad day blocks contributors, and a real regression
# cannot be told apart from the resulting noise. Master Build already
# excludes them for the same reason.
run: mvn verify -pl '!biojava-integrationtest' --no-transfer-progress
# Note that 11 is not available in openjdk. So we need to do it with the Zulu distribution (see https://github.com/actions/setup-java)
# When we drop 11, it will be safe to drop the copy-pasted workflow excerpt below
testzulu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# We do one OS only to reduce resource utilization. To do macOS to this would be needed:
#os: [ubuntu-20.04, macOS-latest]
os: [ubuntu-latest]
java: [11]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build and test (no integration tests)
# Integration tests are excluded here and run nightly instead, see
# nightly.yml. They depend on CATH, ECOD, RCSB, EBI and others being up
# and responsive, so running them on every pull request means a third
# party having a bad day blocks contributors, and a real regression
# cannot be told apart from the resulting noise. Master Build already
# excludes them for the same reason.
run: mvn verify -pl '!biojava-integrationtest' --no-transfer-progress