Skip to content

Commit 74859a7

Browse files
committed
Speed up builds (#1647)
When testing SQL Client templates, we need to build dependencies first (at this moment, Pg and MySQL clients). With this change, the ci.yml workflow action tests the target module in two steps instead of one: - build the target module skipping tests - run tests Signed-off-by: Thomas Segismont <tsegismont@gmail.com>
1 parent b5a1efe commit 74859a7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
Test:
2323
name: Run tests
2424
runs-on: ${{ inputs.os }}
25+
env:
26+
PROFILE_ARG: ${{ inputs.profile && format('-P {0}', inputs.profile) || '' }}
2527
steps:
2628
- name: Checkout
2729
uses: actions/checkout@v2
@@ -32,7 +34,9 @@ jobs:
3234
with:
3335
java-version: ${{ inputs.jdk }}
3436
distribution: temurin
35-
- name: Run tests
37+
- name: Build without tests
3638
run: |
37-
PROFILE_ARG="${{ inputs.profile && format('-P {0}', inputs.profile) || '' }}"
38-
mvn -s .github/maven-ci-settings.xml -q clean verify -B $PROFILE_ARG -pl :${{ inputs.module }} -am
39+
mvn -s .github/maven-ci-settings.xml -q clean install -B $PROFILE_ARG -pl :${{ inputs.module }} -am -DskipTests
40+
- name: Run tests for the target module
41+
run: |
42+
mvn -s .github/maven-ci-settings.xml -q verify -B $PROFILE_ARG -pl :${{ inputs.module }}

0 commit comments

Comments
 (0)