Merge pull request #271 from qoomon/dependabot/maven/org.apache.maven… #605
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
name: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
distribution: adopt | |
cache: maven | |
- name: Build with Maven | |
run: | | |
mvn ${MAVEN_CLI_OPTS} package -DskipTests | |
- name: Test with Maven | |
run: | | |
unset GITHUB_ACTIONS | |
mvn ${MAVEN_CLI_OPTS} test | |
mvn ${MAVEN_CLI_OPTS} install -DskipTests | |
mvn ${MAVEN_CLI_OPTS} failsafe:integration-test failsafe:verify | |
env: | |
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" | |
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version" |