Repository navigation
Create the implicit throw point of a constructor on the new expression #6198
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Benchmark" | |
| on: | |
| pull_request: | |
| paths: | |
| - 'src/**' | |
| - '.github/workflows/bench.yml' | |
| - 'tests/bench/**' | |
| push: | |
| branches: | |
| - "2.3.x" | |
| paths: | |
| - 'src/**' | |
| - '.github/workflows/bench.yml' | |
| - 'tests/bench/**' | |
| concurrency: | |
| group: bench-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| baseline: | |
| name: "Baseline" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: "Checkout base branch" | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # 2.37.2 | |
| with: | |
| coverage: "none" | |
| php-version: "8.5" | |
| tools: pecl | |
| extensions: ds,mbstring | |
| ini-file: development | |
| ini-values: memory_limit=-1 | |
| - uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0 | |
| - uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0 | |
| with: | |
| working-directory: "tests/" | |
| - name: "Run phpbench baseline" | |
| run: "tests/vendor/bin/phpbench run --dump-file=tests/bench/storage/baseline.xml --ansi" | |
| - name: "Upload baseline artifact" | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: phpbench-baseline | |
| path: tests/bench/storage/baseline.xml | |
| test: | |
| name: "Test" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: "Checkout" | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # 2.37.2 | |
| with: | |
| coverage: "none" | |
| php-version: "8.5" | |
| tools: pecl | |
| extensions: ds,mbstring | |
| ini-file: development | |
| ini-values: memory_limit=-1 | |
| - uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0 | |
| - uses: "ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda" # v4.0.0 | |
| with: | |
| working-directory: "tests/" | |
| - name: "Run phpbench test" | |
| run: "tests/vendor/bin/phpbench run --file=tests/bench/storage/baseline.xml --report=my-report --ansi" |