jmeter tests

This commit is contained in:
Rodolphe Fontaine 2024-10-15 10:00:37 +02:00
parent 3a3f3e59fa
commit f0d43cc644
3 changed files with 54 additions and 0 deletions

0
.github/docker vendored Normal file
View file

28
.github/workflows/docker-build.MD vendored Normal file
View file

@ -0,0 +1,28 @@
---
name: Build to Docker Hub
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build & publish the project
run: mvn compile jib:build -X -DjibSerialize=true

26
.github/workflows/run-jmeter-test.yml vendored Normal file
View file

@ -0,0 +1,26 @@
name: Test JMeter Action
on:
push:
branches:
- master
pull_request:
branches: [master]
jobs:
action_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run JMeter Action on a test
uses: rbhadti94/apache-jmeter-action@v0.7.0
with:
testFilePath: test/jmeter/petclinic_test_plan.jmx
outputReportsFolder: reports/
args: "--loglevel INFO"
- uses: actions/upload-artifact@v1
with:
name: jmeter-test-results
path: reports/