-
-
Notifications
You must be signed in to change notification settings - Fork 68
29 lines (29 loc) · 1.09 KB
/
test.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
# 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
jobs:
build:
if: "!contains(toJSON(github.event.commits.*.message), '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: '8'
- name: Compile with Maven
run: mvn --show-version --batch-mode -DskipTests=true -Dgpg.skip=true --activate-profiles sonatype-oss-release install
# With 15+ the scalatest-maven-plugin reports an error loading a test class: https://github.com/christian-schlichtherle/truelicense/runs/2533794318?check_suite_focus=true
- name: Set up JDK 14
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: '14'
- name: Test with Maven
run: mvn --show-version --batch-mode verify
name: test
on:
pull_request:
branches: [ '**' ]
push:
branches: [ '**' ]