diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1ed939395b..84dc4182e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,8 +3,6 @@ name: Build and Test on: push: branches: [ main, dev ] - pull_request: - branches: [ main ] jobs: build: diff --git a/.github/workflows/load-test.yml b/.github/workflows/load-test.yml new file mode 100644 index 0000000000..d8669f5058 --- /dev/null +++ b/.github/workflows/load-test.yml @@ -0,0 +1,35 @@ +name: Load Testing with JMeter + +on: + push: + branches: + - main + pull_request: + branches: + - main + +permissions: + contents: read + actions: read + checks: write + +jobs: + jmeter: + name: Run JMeter Tests + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Run JMeter Action on a test + uses: rbhadti94/apache-jmeter-action@v0.5.0 + with: + testFilePath: tests/jmeter/gite-test-plan.jmx + outputReportsFolder: reports/ + args: "--loglevel INFO" + + - name: Upload JMeter Test Results + uses: actions/upload-artifact@v4 + with: + name: jmeter-test-results + path: reports/ \ No newline at end of file diff --git a/tests/jmeter/gite-test-plan.jmx b/tests/jmeter/gite-test-plan.jmx new file mode 100644 index 0000000000..16ac28b68d --- /dev/null +++ b/tests/jmeter/gite-test-plan.jmx @@ -0,0 +1,55 @@ + + + + + + + + + + + 100 + 25 + true + continue + + 1 + false + + + + + / + true + GET + true + false + + + + + + + /moslem + true + GET + true + false + + + + + + + fox-one-promptly.ngrok-free.app + http + + + + HttpClient4 + + + + + +