-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 989 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: JMeter Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
jmeter-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'adopt'
- name: Download Apache JMeter
run: |
wget https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.6.3.tgz
tar -xf apache-jmeter-5.6.3.tgz
export JMETER_HOME=$PWD/apache-jmeter-5.6.3/bin
- name: Run JMeter Test
run: |
${JMETER_HOME}/jmeter -n -t "perf_actions/IP_Script.jmx" -l test_results.jtl -j jmeter.log
- name: Upload Test Results
uses: actions/upload-artifact@v4
with:
name: jmeter-results
path: test_results.jtl
- name: Upload Logs
uses: actions/upload-artifact@v4
with:
name: jmeter-logs
path: jmeter.log