Skip to content

Commit

Permalink
Merge pull request #38 from matsim-vsp/updateGhAction2
Browse files Browse the repository at this point in the history
Update Github Actions script
  • Loading branch information
kt86 authored Nov 20, 2024
2 parents cd85677 + 1806db0 commit c0c05eb
Showing 1 changed file with 20 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,32 @@ name: Java CI with Maven

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
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:

jobs:
build:
build_and_test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Checkout git repo
uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '21'
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

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
Expand Down

0 comments on commit c0c05eb

Please sign in to comment.