From 429f056251313825aaa6cf13692c65525738c3f9 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 5 Sep 2024 11:25:15 +0100 Subject: [PATCH] Add performance test to review pipeline --- .github/workflows/review_pipeline.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/review_pipeline.yml b/.github/workflows/review_pipeline.yml index a1c5e1e2e..b6a59c0cd 100644 --- a/.github/workflows/review_pipeline.yml +++ b/.github/workflows/review_pipeline.yml @@ -38,6 +38,35 @@ jobs: permissions: id-token: write + performance: + needs: [code] + runs-on: ubuntu-latest + + steps: + - name: Install Apache Benchmark (ab) + run: sudo apt-get update && sudo apt-get install -y apache2-utils + + - name: Run Performance Test + run: | + # Get the CSRF token + TOKEN=$(curl -c token_cookies.txt -s https://review.submit-social-housing-data.levellingup.gov.uk/${{ github.event.pull_request.number }}/account/sign-in | grep '