[4.x] Time based sharding #4456
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: Static Analysis | |
| on: | |
| push: | |
| branches: [4.x] | |
| pull_request: | |
| schedule: | |
| - cron: '0 9 * * *' | |
| concurrency: | |
| group: static-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| static: | |
| if: github.event_name != 'schedule' || github.repository == 'pestphp/pest' | |
| name: Static Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| dependency-version: [prefer-lowest, prefer-stable] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.3 | |
| tools: composer:v2 | |
| coverage: none | |
| extensions: sockets | |
| - name: Get Composer cache directory | |
| id: composer-cache | |
| shell: bash | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache Composer dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: static-php-8.3-${{ matrix.dependency-version }}-composer-${{ hashFiles('**/composer.json') }} | |
| restore-keys: | | |
| static-php-8.3-${{ matrix.dependency-version }}-composer- | |
| static-php-8.3-composer- | |
| - name: Install Dependencies | |
| run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi | |
| - name: Profanity Check | |
| run: composer test:profanity | |
| - name: Type Check | |
| run: composer test:type:check | |
| - name: Type Coverage | |
| run: composer test:type:coverage | |
| - name: Style | |
| run: composer test:lint |