Skip to content

Commit

Permalink
Merge pull request #459 from TNO/Sophietje-patch-1
Browse files Browse the repository at this point in the history
Create initial CI workflow with Github Actions
  • Loading branch information
Sophietje authored Jan 15, 2024
2 parents 9ad806d + 3c1a123 commit fe0e1f9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
MAVEN_OPTS: -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true
MAVEN_CLI_OPTS: --batch-mode --errors --fail-at-end --show-version

jobs:
build:
runs-on: ubuntu-latest
container: maven:3.8.7-eclipse-temurin-17-alpine

steps:
- uses: actions/checkout@v4
- name: Compile test source code with Maven
run: mvn $MAVEN_CLI_OPTS test-compile
- name: Run the Maven verify phase
run: mvn $MAVEN_CLI_OPTS verify

0 comments on commit fe0e1f9

Please sign in to comment.