Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Java CI with Maven

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 12, 13 ]
name: Java ${{ matrix.java }} compile
steps:
- uses: actions/checkout@master

- name: Cache maven dependencies
uses: actions/cache@v1
env:
cache-name: cache-maven-dependencies
with:
path: ~/.m2
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-

- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- run: mvn test
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -305,11 +306,6 @@
In the reporting section javadoc plugin is mentioned as well to enable javadoc as part of the 'mvn site'
lifecycle
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
</plugin>
<!--
Run pmd:pmd and pmd:cpd goals directly without being part of 'mvn site' lifecycle
PMD and CPD scans java code for possible problems and copy-pasted code
Expand Down