Update README.md #734
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 | |
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" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 11 | |
distribution: adopt | |
cache: maven | |
- name: Build with Maven | |
run: | | |
./mvnw ${MAVEN_CLI_OPTS} package -DskipTests | |
- name: Test with Maven | |
run: | | |
unset GITHUB_ACTIONS | |
./mvnw ${MAVEN_CLI_OPTS} test | |
./mvnw ${MAVEN_CLI_OPTS} install -DskipTests | |
./mvnw ${MAVEN_CLI_OPTS} failsafe:integration-test failsafe:verify | |