From 070892b807260808924e1b9524c6c718bdfd20d9 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Sat, 7 Sep 2019 13:24:34 +0200 Subject: [PATCH] build(ci): split build and test --- .github/workflows/build.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd803e2e..87798a17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,20 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - uses: actions/setup-java@v1 with: java-version: 1.8 - name: Build with Maven env: - MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + 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" run: | - mvn install -V -B - mvn failsafe:integration-test failsafe:verify -V -B + mvn ${MAVEN_CLI_OPTS} package -DskipTests + - name: Test with Maven + 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" + run: | + mvn ${MAVEN_CLI_OPTS} test + mvn ${MAVEN_CLI_OPTS} install -DskipTests + mvn ${MAVEN_CLI_OPTS} failsafe:integration-test failsafe:verify