Bump laravel/pulse from 1.8.0 to 1.8.1 #1000
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] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 | |
| with: | |
| php-version: '8.5' | |
| extensions: mbstring, pdo, pdo_sqlite, bcmath, opcache, zip, gd, intl, dom, curl | |
| coverage: xdebug | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| - name: Get composer cache directory | |
| id: composer-cache | |
| run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
| - name: Cache composer dependencies | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: ${{ runner.os }}-composer- | |
| - name: Validate Composer metadata | |
| run: composer validate --strict | |
| - name: Copy environment file | |
| run: cp .env.example .env | |
| - name: Install dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Build frontend assets | |
| run: npm ci --no-audit --no-fund && npm run build | |
| - name: Audit dependencies | |
| run: composer audit --locked | |
| - name: Check formatting | |
| run: vendor/bin/pint --test | |
| # phpstan.neon existed and was configured at level 9 while nothing ever | |
| # ran it. Scope and level are explained in that file. | |
| - name: Static analysis | |
| run: vendor/bin/phpstan analyse --no-progress | |
| - name: Generate application key | |
| run: php artisan key:generate | |
| # The threshold measures app/ alone — the host's five composition classes. Package | |
| # coverage is each package's own gate, against its own phpunit.xml (§3.10). | |
| - name: Run tests | |
| run: php artisan test --coverage-clover=coverage.xml --min=100 | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| disable_search: true | |
| flags: unittests | |
| name: codecov-umbrella | |
| fail_ci_if_error: true |