This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
Merge pull request #231 from aditosoftware/#2017308_merge_msg_conflicts #427
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
- os: ubuntu-latest | |
- os: windows-latest | |
steps: | |
- name: Setup / Checkout | |
uses: actions/checkout@v2 | |
- name: Setup / Maven | |
uses: stCarolas/setup-maven@v4 | |
with: | |
maven-version: 3.6.3 | |
- name: Setup / JDK | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 13 | |
- name: settings.xml | |
uses: whelk-io/maven-settings-xml-action@v9 | |
with: | |
servers: > | |
[{ | |
"id": "default", | |
"username": "${{ secrets.nexus_user }}", | |
"password": "${{ secrets.nexus_password }}" | |
}, | |
{ | |
"id": "snapshots", | |
"username": "${{ secrets.nexus_user }}", | |
"password": "${{ secrets.nexus_password }}" | |
}] | |
repositories: > | |
[{ | |
"id": "default", | |
"name": "default", | |
"url": "https://nexus.adito.cloud/repository/public/", | |
"releases": { "enabled": "true" } | |
}, | |
{ | |
"id": "snapshots", | |
"name": "snapshots", | |
"url": "https://nexus.adito.cloud/repository/snapshots/", | |
"snapshots": { "enabled": "true", "updatePolicy": "always" } | |
}] | |
plugin_repositories: > | |
[{ | |
"id": "default", | |
"url": "https://nexus.adito.cloud/repository/public/", | |
"releases": { "enabled": "true" }, | |
"snapshots": { "enabled": "true", "updatePolicy": "always" } | |
}] | |
- name: Restore Maven cache | |
uses: skjolber/maven-cache-github-action@v1 | |
with: | |
step: restore | |
- name: Native / Compile | |
run: mvn clean package -Pnative "-Dmaven.javadoc.skip=true" | |
- name: Native / Integration Test | |
run: mvn -Pnative test-compile failsafe:integration-test failsafe:verify | |
- name: Save Maven cache | |
uses: skjolber/maven-cache-github-action@v1 | |
with: | |
step: save |