New podcast episode(s) from Transistor.fm #102
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: 'Unit Tests' | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pest: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: 8.4 | |
| tools: composer:v2 | |
| coverage: xdebug | |
| - name: Cache Vendor | |
| id: cache-vendor | |
| uses: actions/cache@v3 | |
| with: | |
| path: vendor | |
| key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }} | |
| - name: Install Dependencies | |
| run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Cache NPM dependencies | |
| id: cache-npm | |
| uses: actions/cache@v3 | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-node_modules-${{ hashFiles('**/package-lock.json') }} | |
| - name: NPM dependencies | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Prepare Laravel Application | |
| run: | | |
| cp .env.example .env | |
| php artisan key:generate | |
| - name: Tests | |
| run: ./vendor/bin/pest |