action.yaml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. name: 'Prepare jmeter'
  2. description: 'Download jmeter packages'
  3. runs:
  4. using: composite
  5. steps:
  6. - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
  7. with:
  8. repository: emqx/emqx-fvt
  9. ref: broker-autotest-v5
  10. path: scripts
  11. - uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
  12. with:
  13. java-version: '8.0.282' # The JDK version to make available on the path.
  14. java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
  15. architecture: x64 # (x64 or x86) - defaults to x64
  16. # https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
  17. distribution: 'zulu'
  18. - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
  19. with:
  20. name: apache-jmeter.tgz
  21. - name: install jmeter
  22. shell: bash
  23. env:
  24. JMETER_VERSION: 5.4.3
  25. run: |
  26. tar -xf apache-jmeter.tgz
  27. ln -s apache-jmeter-$JMETER_VERSION jmeter
  28. echo "jmeter.save.saveservice.output_format=xml" >> jmeter/user.properties
  29. echo "jmeter.save.saveservice.response_data.on_error=true" >> jmeter/user.properties
  30. cd jmeter/lib/ext
  31. wget --no-verbose https://raw.githubusercontent.com/xmeter-net/mqtt-jmeter/master/Download/v2.0.2/mqtt-xmeter-fuse-2.0.2-jar-with-dependencies.jar
  32. wget --no-verbose https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar
  33. wget --no-verbose https://repo1.maven.org/maven2/org/postgresql/postgresql/42.2.18/postgresql-42.2.18.jar