name: Review app pipeline concurrency: group: review-${{ github.event.pull_request.number }} on: pull_request: types: - opened - synchronize - reopened workflow_dispatch: defaults: run: shell: bash jobs: infra: name: Deploy review app infrastructure uses: communitiesuk/submit-social-housing-lettings-and-sales-data-infrastructure/.github/workflows/create_review_app_infra.yml@main with: key: ${{ github.event.pull_request.number }} app_repo_role: arn:aws:iam::815624722760:role/core-application-repo permissions: id-token: write code: name: Deploy review app code needs: [infra] uses: ./.github/workflows/aws_deploy.yml with: aws_account_id: 837698168072 aws_role_prefix: core-dev aws_task_prefix: core-review-${{ github.event.pull_request.number }} concurrency_tag: ${{ github.event.pull_request.number }} environment: review 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: | echo "Fetching 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 '