mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
31 lines
681 B
YAML
31 lines
681 B
YAML
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.1
|
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite
|
|
coverage: none
|
|
|
|
- name: Install Composer dependencies
|
|
run: composer install --prefer-dist --no-interaction
|
|
|
|
- name: Copy environment file
|
|
run: cp .env.example .env
|
|
|
|
- name: Generate app key
|
|
run: php artisan key:generate
|
|
|
|
- name: Execute tests
|
|
run: vendor/bin/phpunit
|