docs: add performance page, link it from both doc menus and the chang… #59
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: Tests | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| inputs: | |
| php: | |
| description: 'PHP version (blank = all)' | |
| required: false | |
| type: choice | |
| options: ['', '8.1', '8.2', '8.3', '8.4', '8.5'] | |
| jobs: | |
| test: | |
| name: PHP ${{ matrix.php }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| php: ${{ inputs.php && fromJSON(format('["{0}"]', inputs.php)) || fromJSON('["8.1","8.2","8.3","8.4","8.5"]') }} | |
| include: | |
| # OS/arch bugs (paths, case-insensitive filenames, char signedness in | |
| # extensions) don't vary by PHP version, so one job per platform at the | |
| # 8.1 floor. No Windows ARM job: php.net ships no ARM64 Windows builds. | |
| - { os: windows-latest, php: '8.1' } # Windows x64 - CMSB production | |
| - { os: ubuntu-24.04-arm, php: '8.1' } # Linux arm64 - Graviton-class hosts | |
| - { os: macos-latest, php: '8.1' } # macOS arm64 - Apple Silicon devs | |
| - { os: macos-15-intel, php: '8.1' } # macOS x64 - Intel Macs; drop after a quiet stretch | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Checkout SmartArray | |
| run: git clone --depth 1 https://github.com/interactivetools-com/SmartArray.git ../SmartArray | |
| - name: Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| extensions: mbstring | |
| coverage: none | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run tests | |
| run: vendor/bin/phpunit --colors=always |