diff --git a/.github/workflows/spring-boot-gradle-ci.yml b/.github/workflows/spring-boot-gradle-ci.yml index d242070a..18943b15 100644 --- a/.github/workflows/spring-boot-gradle-ci.yml +++ b/.github/workflows/spring-boot-gradle-ci.yml @@ -21,6 +21,15 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew + - name: Set up Gradle Cache + uses: actions/cache@v3 + with: + path: ~/.gradle/caches/modules-2/files-2.1 + key: gradle-${{ runner.os }}-build-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + gradle-${{ runner.os }}-build + gradle-${{ runner.os }} + - name: Create application-test.yml from secret for stempo-common env: COMMON_TEST_YML: ${{ secrets.COMMON_TEST_YML }} @@ -49,7 +58,14 @@ jobs: echo $AUTH_TEST_YML | base64 --decode > $AUTH_TEST_DIR/$AUTH_DIR_FILE_NAME - name: Run tests with Gradle - run: ./gradlew test -Dspring.profiles.active=test --info + run: ./gradlew test -Dspring.profiles.active=test --info --parallel + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v3 + with: + name: test-results + path: '**/build/test-results/test' build: runs-on: ubuntu-latest @@ -70,7 +86,7 @@ jobs: run: chmod +x gradlew - name: Build with Gradle - run: ./gradlew assemble --info + run: ./gradlew assemble --info --parallel - name: Check build status run: |