mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-30 18:10:44 +08:00
* Update push-ci.yml, add golang test * Update pr-e2e-test.yml, add golang test
This commit is contained in:
@@ -103,7 +103,7 @@ jobs:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
name: Deploy rocketmq
|
||||
with:
|
||||
action: "deploy"
|
||||
@@ -126,10 +126,9 @@ jobs:
|
||||
image:
|
||||
repository: ${{env.DOCKER_REPO}}
|
||||
tag: ${{ matrix.version }}
|
||||
|
||||
e2e-test:
|
||||
test-e2e-grpc-java:
|
||||
if: ${{ success() }}
|
||||
name: E2E Test
|
||||
name: Test E2E grpc java
|
||||
needs: [list-version, deploy]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
@@ -137,17 +136,17 @@ jobs:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e"
|
||||
test-code-branch: "master"
|
||||
test-code-path: java/e2e
|
||||
test-cmd: "mvn -B test"
|
||||
job-id: ${{ strategy.job-index }}
|
||||
job-id: 0
|
||||
- name: Publish Test Report
|
||||
uses: mikepenz/action-junit-report@v3
|
||||
if: always() # always run even if the previous step fails
|
||||
@@ -160,24 +159,99 @@ jobs:
|
||||
if: always()
|
||||
name: Upload test log
|
||||
with:
|
||||
name: testlog.txt
|
||||
name: test-e2e-grpc-java-log.txt
|
||||
path: testlog.txt
|
||||
|
||||
|
||||
clean:
|
||||
if: always()
|
||||
name: Clean
|
||||
needs: [list-version, e2e-test]
|
||||
|
||||
test-e2e-golang:
|
||||
if: ${{ success() }}
|
||||
name: Test E2E golang
|
||||
needs: [list-version, deploy]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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"
|
||||
test-code-branch: "master"
|
||||
test-code-path: golang
|
||||
test-cmd: |
|
||||
cd ../common && mvn -Prelease -DskipTests clean package -U
|
||||
cd ../rocketmq-admintools && source bin/env.sh
|
||||
cd ../golang && go get -u github.com/apache/rocketmq-clients/golang && gotestsum --junitfile ./target/surefire-reports/TEST-report.xml ./mqgotest/... -timeout 2m -v
|
||||
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-golang-log.txt
|
||||
path: testlog.txt
|
||||
|
||||
test-e2e-remoting-java:
|
||||
if: ${{ success() }}
|
||||
name: Test E2E remoting java
|
||||
needs: [ list-version, deploy ]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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"
|
||||
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: [list-version, test-e2e-grpc-java, test-e2e-golang, test-e2e-remoting-java]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
name: clean
|
||||
with:
|
||||
action: "clean"
|
||||
ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
|
||||
test-version: "${{ matrix.version }}"
|
||||
job-id: ${{ strategy.job-index }}
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ jobs:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
name: Deploy rocketmq
|
||||
with:
|
||||
action: "deploy"
|
||||
@@ -131,9 +131,9 @@ jobs:
|
||||
image:
|
||||
repository: ${{env.DOCKER_REPO}}
|
||||
tag: ${{ matrix.version }}
|
||||
e2e-test:
|
||||
test-e2e-grpc-java:
|
||||
if: ${{ success() }}
|
||||
name: E2E Test
|
||||
name: Test E2E grpc java
|
||||
needs: [list-version, deploy]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
@@ -141,17 +141,17 @@ jobs:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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-git: "https://ghproxy.com/https://github.com/apache/rocketmq-e2e"
|
||||
test-code-branch: "master"
|
||||
test-code-path: java/e2e
|
||||
test-cmd: "mvn -B test"
|
||||
job-id: ${{ strategy.job-index }}
|
||||
job-id: 0
|
||||
- name: Publish Test Report
|
||||
uses: mikepenz/action-junit-report@v3
|
||||
if: always() # always run even if the previous step fails
|
||||
@@ -164,23 +164,99 @@ jobs:
|
||||
if: always()
|
||||
name: Upload test log
|
||||
with:
|
||||
name: testlog.txt
|
||||
name: test-e2e-grpc-java-log.txt
|
||||
path: testlog.txt
|
||||
|
||||
clean:
|
||||
if: always()
|
||||
name: Clean
|
||||
needs: [list-version, e2e-test]
|
||||
|
||||
test-e2e-golang:
|
||||
if: ${{ success() }}
|
||||
name: Test E2E golang
|
||||
needs: [list-version, deploy]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@1a646589accad17070423eabf0f54925e52b0666
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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"
|
||||
test-code-branch: "master"
|
||||
test-code-path: golang
|
||||
test-cmd: |
|
||||
cd ../common && mvn -Prelease -DskipTests clean package -U
|
||||
cd ../rocketmq-admintools && source bin/env.sh
|
||||
cd ../golang && go get -u github.com/apache/rocketmq-clients/golang && gotestsum --junitfile ./target/surefire-reports/TEST-report.xml ./mqgotest/... -timeout 2m -v
|
||||
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-golang-log.txt
|
||||
path: testlog.txt
|
||||
|
||||
test-e2e-remoting-java:
|
||||
if: ${{ success() }}
|
||||
name: Test E2E remoting java
|
||||
needs: [ list-version, deploy ]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
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"
|
||||
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: [list-version, test-e2e-grpc-java, test-e2e-golang, test-e2e-remoting-java]
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 60
|
||||
strategy:
|
||||
matrix:
|
||||
version: ${{ fromJSON(needs.list-version.outputs.version-json) }}
|
||||
steps:
|
||||
- uses: apache/rocketmq-test-tool@7d84d276ad7755b1dc5cf9657a7a9bff6ae6d288
|
||||
name: clean
|
||||
with:
|
||||
action: "clean"
|
||||
ask-config: "${{ secrets.ASK_CONFIG_VIRGINA }}"
|
||||
test-version: "${{ matrix.version }}"
|
||||
job-id: ${{ strategy.job-index }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user