From a64d631451f25d2eb0b7a0fe3f04e48085660a45 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 6 May 2024 10:56:47 +0200 Subject: [PATCH] add performance Signed-off-by: Joas Schilling --- .github/workflows/performance.yml | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/performance.yml diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml new file mode 100644 index 0000000..af8725d --- /dev/null +++ b/.github/workflows/performance.yml @@ -0,0 +1,35 @@ +name: Performance testing +on: + pull_request: + +concurrency: + group: performance-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + performance-testing: + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-versions: ['8.1'] + + name: performance-${{ matrix.php-versions }} + + steps: + - name: Checkout server before PR + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 + with: + submodules: true + ref: ${{ github.event.pull_request.base.ref }} + + - name: Apply PR + env: + PULL_REQUEST_HEAD_REF: ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_BASE_REF: ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }} + run: | + echo $PULL_REQUEST_CLONE_URL + echo $PULL_REQUEST_HEAD_REF + echo $PULL_REQUEST_BASE_REF