taojintianxia commented on code in PR #30898:
URL: https://github.com/apache/shardingsphere/pull/30898#discussion_r1570355001
##########
.github/workflows/e2e-agent.yml:
##########
@@ -59,11 +59,50 @@ jobs:
global-environment:
name: Import Global Environment
uses: ./.github/workflows/required-reusable.yml
-
+
+ build-e2e-image:
+ name: Build E2E Image
+ needs: global-environment
+ runs-on: ubuntu-latest
+ timeout-minutes: 20
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-java@v4
+ with:
+ distribution: 'temurin'
+ java-version: 11
+ - uses: actions/cache@v4
+ with:
+ path: ~/.m2/repository
+ key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-e2e-cache-${{ github.sha }}
+ restore-keys: |
+ ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-e2e-cache-
+ ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-maven-third-party-
+ - name: Build Project
+ run: ./mvnw -B clean install -Dmaven.javadoc.skip=true
-Dcheckstyle.skip=true -DskipTests -Dspotless.apply.skip=true -Prelease
+ - name: Build Proxy E2E Image
+ run: ./mvnw clean install -Dmaven.javadoc.skip=true
-Dcheckstyle.skip=true -DskipTests -Dspotless.apply.skip=true -Pit.env.proxy -f
test/e2e/agent/plugins/common/pom.xml
+ - name: Save Proxy E2E Image
+ run: docker save -o /tmp/${{
needs.global-environment.outputs.GLOBAL_CACHE_PREFIX }}-proxy-agent-test.tar
apache/shardingsphere-proxy-agent-test:latest
+ - uses: actions/upload-artifact@v4
+ with:
+ name: proxy-e2e-image
+ path: /tmp/${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX
}}-proxy-agent-test.tar
+ retention-days: 10
+ - name: Build JDBC E2E Image
+ run: ./mvnw clean install -Dmaven.javadoc.skip=true
-Dcheckstyle.skip=true -DskipTests -Dspotless.apply.skip=true -Pit.env.jdbc -f
test/e2e/agent/plugins/common/pom.xml
Review Comment:
same as previous
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]