Skip to content

security: remove static APP_KEY from phpunit.xml + ignore .env files … #29

security: remove static APP_KEY from phpunit.xml + ignore .env files …

security: remove static APP_KEY from phpunit.xml + ignore .env files … #29

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.3'
laravel: '^11.0'
testbench: '^9.0'
- php: '8.4'
laravel: '^11.0'
testbench: '^9.0'
- php: '8.3'
laravel: '^12.0'
testbench: '^10.0'
- php: '8.4'
laravel: '^12.0'
testbench: '^10.0'
- php: '8.3'
laravel: '^13.0'
testbench: '^11.0'
- php: '8.4'
laravel: '^13.0'
testbench: '^11.0'
- php: '8.5'
laravel: '^13.0'
testbench: '^11.0'
name: PHPUnit · PHP ${{ matrix.php }} · Laravel ${{ matrix.laravel }}
steps:
- uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2
- name: Cache composer
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: composer-${{ matrix.php }}-${{ matrix.laravel }}-${{ hashFiles('composer.json') }}
- name: Pin Laravel + Testbench matrix
run: |
composer require --no-update --no-interaction \
"illuminate/config:${{ matrix.laravel }}" \
"illuminate/http:${{ matrix.laravel }}" \
"illuminate/routing:${{ matrix.laravel }}" \
"illuminate/support:${{ matrix.laravel }}" \
"illuminate/view:${{ matrix.laravel }}"
composer require --no-update --no-interaction --dev \
"orchestra/testbench:${{ matrix.testbench }}"
- name: Install composer deps
run: composer install --prefer-dist --no-interaction --no-progress
- name: Run PHPUnit
run: vendor/bin/phpunit
vitest:
runs-on: ubuntu-latest
name: Vitest (component)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.19'
cache: npm
- run: npm ci
- run: npm run test
playwright:
runs-on: ubuntu-latest
name: Playwright (E2E)
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.19'
cache: npm
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run build
- run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 7