docs: tone-neutral CLAUDE.md for public consumption #4
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: CI | |
| on: | |
| push: | |
| branches: [stage, master] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| php: ["8.1", "8.2", "8.3", "8.4"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| coverage: none | |
| tools: composer:v2 | |
| - name: Composer cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.composer/cache | |
| key: composer-${{ matrix.php }}-${{ hashFiles('composer.json') }} | |
| - name: Install deps | |
| run: composer install --no-interaction --no-progress --prefer-dist | |
| - name: PHPUnit (offline) | |
| run: vendor/bin/phpunit --testsuite offline | |
| live-test: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| needs: test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.3" | |
| tools: composer:v2 | |
| - name: Install deps | |
| run: composer install --no-interaction --no-progress --prefer-dist | |
| - name: Live tests against stage | |
| env: | |
| POSTIO_API_KEY_STAGE: ${{ secrets.POSTIO_API_KEY_STAGE }} | |
| run: vendor/bin/phpunit --testsuite live |