-
Notifications
You must be signed in to change notification settings - Fork 452
53 lines (42 loc) · 1.5 KB
/
full-integration.yaml
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: full-integration
on:
workflow_dispatch:
schedule:
- cron: '30 0 * * *' # daily at 0:30 UTC
jobs:
run-full-integration:
name: run full integration
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
#os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Prepare git
# turn off CRLF conversion (necessary on Windows)
run: git config --global core.autocrlf false
- name: Checkout git repo
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
cache: 'maven'
# Run unit and integration tests
- name: Run verify - release profile
# arguments containing dots (.) need to be quoted ('') so that PowerShell (Windows) does not parse them
run: mvn verify -P release --batch-mode --fail-at-end -D'maven.test.redirectTestOutputToFile' -D'matsim.preferLocalDtds=true'
env:
MAVEN_OPTS: -Xmx2g
verify-full-integration-successful:
# always() - to ensure this job is executed (regardless of the status of the previous job)
# run if push or pull_requests from fork
if: always()
needs: run-full-integration
runs-on: ubuntu-latest
steps:
- name: check if the whole job matrix is successful
if: needs.run-full-integration.result != 'success'
run: exit 1 # fail if "test" was not successful