34 lines
1.5 KiB
YAML
34 lines
1.5 KiB
YAML
name: 'Prepare jmeter'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
|
|
with:
|
|
repository: emqx/emqx-fvt
|
|
ref: broker-autotest-v5
|
|
path: scripts
|
|
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
|
with:
|
|
java-version: '8.0.282' # The JDK version to make available on the path.
|
|
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
|
|
architecture: x64 # (x64 or x86) - defaults to x64
|
|
# https://github.com/actions/setup-java/blob/main/docs/switching-to-v2.md
|
|
distribution: 'zulu'
|
|
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
|
with:
|
|
name: apache-jmeter.tgz
|
|
- name: install jmeter
|
|
shell: bash
|
|
env:
|
|
JMETER_VERSION: 5.4.3
|
|
run: |
|
|
tar -xf apache-jmeter.tgz
|
|
ln -s apache-jmeter-$JMETER_VERSION jmeter
|
|
echo "jmeter.save.saveservice.output_format=xml" >> jmeter/user.properties
|
|
echo "jmeter.save.saveservice.response_data.on_error=true" >> jmeter/user.properties
|
|
cd jmeter/lib/ext
|
|
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
|
|
wget --no-verbose https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar
|
|
wget --no-verbose https://repo1.maven.org/maven2/org/postgresql/postgresql/42.2.18/postgresql-42.2.18.jar
|