From 2f9e587e7348f4c3bdbc500061fb871cb0988ec2 Mon Sep 17 00:00:00 2001 From: ReaJason Date: Sun, 2 Feb 2025 15:18:21 +0800 Subject: [PATCH] ci: fetch depth 0 [skip ci] --- .github/workflows/ci.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 11a4f06f..f782842e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,11 +18,15 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Java uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - name: Unit Test with Gradle @@ -31,24 +35,42 @@ jobs: strategy: fail-fast: false matrix: - middleware: [ "tomcat", "jetty", "jbossas", "jbosseap", "wildfly", "glassfish", "resin", "payara", "websphere", "springmvc", "weblogic", "springwebflux", xxljob ] + middleware: + - tomcat + - jetty + - jbossas + - jbosseap + - wildfly + - glassfish + - resin + - payara + - websphere + - springmvc + - weblogic + - springwebflux + - xxljob runs-on: ubuntu-latest name: ${{ matrix.middleware }} needs: [ unit-test ] steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Java uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: 17 + - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 - name: Integration Test with gradle run: ./gradlew :integration-test:test --tests '*.${{ matrix.middleware }}.*' --info - name: Export Integration Test Summary run: cat integration-test/build/test-results/report.md >> $GITHUB_STEP_SUMMARY + - name: Upload jacoco uses: actions/upload-artifact@v4 with: @@ -64,6 +86,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup Java uses: actions/setup-java@v4 with: