-
Notifications
You must be signed in to change notification settings - Fork 141
37 lines (29 loc) · 1.08 KB
/
GithubActionsCI_maven.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
#on:
# push:
## branches-ignore:
## - 'master' # no need to run after merging to master
## - 'main' # no need to run after merging to main; main is the "new" master
# pull_request:
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
environment: Build
env:
MATSIM_DECRYPTION_PASSWORD: ${{ secrets.MATSIM_DECRYPTION_PASSWORD }}
steps:
- name: Checkout git repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
cache: maven
- name: Build module (with dependencies)
run: mvn -B package --file pom.xml -DskipTests -Dsource.skip
- name: Test module
run: mvn verify --batch-mode -Dmaven.test.redirectTestOutputToFile -Dmatsim.preferLocalDtds=true --fail-at-end -Dsource.skip