| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: E2E test for pull request |
| |
| # read-write repo token |
| # access to secrets |
| on: |
| workflow_run: |
| workflows: ["PR-CI"] |
| types: |
| - completed |
| |
| env: |
| DOCKER_REPO: apache/rocketmq-ci |
| |
| jobs: |
| deploy: |
| if: ${{ success() }} |
| name: Deploy RocketMQ |
| runs-on: ubuntu-latest |
| timeout-minutes: 60 |
| strategy: |
| matrix: |
| version: [ 5.1.0 ] |
| steps: |
| - uses: apache/rocketmq-test-tool@07147d677bc032edf30eee27fe94c0f531e075a2 |
| name: Deploy rocketmq |
| with: |
| action: "deploy" |
| ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| test-version: "${{ matrix.version }}" |
| chart-git: "https://ghproxy.com/https://github.com/apache/rocketmq-docker.git" |
| chart-branch: "master" |
| chart-path: "./rocketmq-k8s-helm" |
| job-id: ${{ strategy.job-index }} |
| helm-values: | |
| nameserver: |
| image: |
| repository: ${{env.DOCKER_REPO}} |
| tag: ${{ matrix.version }} |
| broker: |
| image: |
| repository: ${{env.DOCKER_REPO}} |
| tag: ${{ matrix.version }} |
| proxy: |
| image: |
| repository: ${{env.DOCKER_REPO}} |
| tag: ${{ matrix.version }} |
| |
| e2e-grpc-java-test: |
| if: ${{ success() }} |
| name: e2e-grpc-java-test |
| needs: [ deploy ] |
| runs-on: ubuntu-latest |
| timeout-minutes: 60 |
| strategy: |
| matrix: |
| version: [ 5.1.0 ] |
| steps: |
| - uses: apache/rocketmq-test-tool@07147d677bc032edf30eee27fe94c0f531e075a2 |
| name: e2e test |
| with: |
| action: "test" |
| ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| test-version: "${{ matrix.version }}" |
| test-code-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e.git" |
| test-code-branch: "master" |
| test-code-path: java/e2e |
| test-cmd: "mvn -B test" |
| job-id: 0 |
| - name: Publish Test Report |
| uses: mikepenz/action-junit-report@v3 |
| if: always() # always run even if the previous step fails |
| with: |
| report_paths: '**/test_report/TEST-*.xml' |
| annotate_only: true |
| include_passed: true |
| detailed_summary: true |
| - uses: actions/upload-artifact@v3 |
| if: always() |
| name: Upload test log |
| with: |
| name: test-e2e-grpc-java-log.txt |
| path: testlog.txt |
| |
| e2e-remoting-java-test: |
| if: ${{ success() }} |
| name: e2e-remoting-java-test |
| needs: [ deploy ] |
| runs-on: ubuntu-latest |
| timeout-minutes: 60 |
| strategy: |
| matrix: |
| version: [ 5.1.0 ] |
| steps: |
| - uses: apache/rocketmq-test-tool@07147d677bc032edf30eee27fe94c0f531e075a2 |
| name: e2e test |
| with: |
| action: "test" |
| ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| test-version: "${{ matrix.version }}" |
| test-code-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e.git" |
| test-code-branch: "master" |
| test-code-path: java/e2e-v4 |
| test-cmd: "mvn -B test" |
| job-id: 0 |
| - name: Publish Test Report |
| uses: mikepenz/action-junit-report@v3 |
| if: always() # always run even if the previous step fails |
| with: |
| report_paths: '**/test_report/TEST-*.xml' |
| annotate_only: true |
| include_passed: true |
| detailed_summary: true |
| - uses: actions/upload-artifact@v3 |
| if: always() |
| name: Upload test log |
| with: |
| name: test-e2e-remoting-java-log.txt |
| path: testlog.txt |
| |
| clean: |
| if: always() |
| name: Clean |
| needs: [ e2e-remoting-java-test,e2e-grpc-java-test ] |
| runs-on: ubuntu-latest |
| timeout-minutes: 60 |
| strategy: |
| matrix: |
| version: [ 5.1.0 ] |
| steps: |
| - uses: apache/rocketmq-test-tool@07147d677bc032edf30eee27fe94c0f531e075a2 |
| name: clean |
| with: |
| action: "clean" |
| ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}" |
| test-version: "${{ matrix.version }}" |
| job-id: ${{ strategy.job-index }} |