From 96b5eba7c1afffd04afea56f11accee4edf8713d Mon Sep 17 00:00:00 2001 From: matthew16550 Date: Tue, 2 Nov 2021 17:59:16 +1100 Subject: [PATCH] Speed up CI by only running "mvn package" when strictly necessary --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f15edb49a..9ca3f3269 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,8 +54,8 @@ jobs: echo "This run will NOT make a release" fi - # We run the tests on many OS / Java combinations but also the Compile & Package steps because some users build - # their own jars from source, so it is good for CI to check that "mvn package" is working on all combinations. + # We run the tests on many OS / Java combinations but also the Compile step because some users build + # their own jars from source, so it is good for CI to check that is working on all combinations. build: needs: workflow_config strategy: @@ -99,6 +99,7 @@ jobs: run: mvn --batch-mode test - name: Package + if: ${{ matrix.release_from_this_build }} run: mvn --batch-mode -Dmaven.test.skip=true package - name: Upload jar artifacts