Dhank77 feat wayfinder #49
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: tests | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| - main | |
| - laravel-12.x | |
| pull_request: | |
| branches: | |
| - develop | |
| - main | |
| - laravel-12.x | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| tools: composer:v2 | |
| coverage: xdebug | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: '1.1.30' | |
| - name: Cache Bun Dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/bun | |
| key: bun-cache-${{ hashFiles('bun.lock') }} | |
| restore-keys: | | |
| bun-cache- | |
| - name: Install Frontend Dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Install Dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - name: Build Assets | |
| run: bun run build | |
| - name: Copy Environment File | |
| run: cp .env.example .env | |
| - name: Generate Application Key | |
| run: php artisan key:generate | |
| - name: Tests | |
| run: ./vendor/bin/pest |