Only treat implode() separator as guaranteeing a non-empty result when the array has at least two elements
#3018
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.2.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@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: "Checkout base branch" | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc" # v2.37.1 | |
| 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@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: "Checkout" | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: "Install PHP" | |
| uses: "shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc" # v2.37.1 | |
| 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" |