diff --git a/.github/workflows/main-unix.yml b/.github/workflows/main-unix.yml index 1d471e745b103..275a9191bc8e1 100644 --- a/.github/workflows/main-unix.yml +++ b/.github/workflows/main-unix.yml @@ -61,4 +61,6 @@ jobs: - name: IT/UT Test shell: bash # we do not compile client-cpp for saving time, it is tested in client.yml - run: mvn -B clean test -Dtest.port.closed=true -P '!testcontainer' -P get-jar-with-dependencies + run: | + mvn clean install -DskipTests + mvn -B clean test -Dtest.port.closed=true -P '!testcontainer' -P get-jar-with-dependencies diff --git a/.github/workflows/main-win.yml b/.github/workflows/main-win.yml index 92f12741b571a..0005adc9fa718 100644 --- a/.github/workflows/main-win.yml +++ b/.github/workflows/main-win.yml @@ -68,5 +68,7 @@ jobs: - name: Test Other Modules with Maven shell: bash if: ${{ matrix.it_task == 'others'}} - run: mvn clean test -Dtest.port.closed=true -Diotdb.test.skip=true -P get-jar-with-dependencies + run: | + mvn clean install -DskipTests + mvn clean test -Dtest.port.closed=true -Diotdb.test.skip=true -P get-jar-with-dependencies