Skip to content

test(setup): ✅ added setup tests #8

test(setup): ✅ added setup tests

test(setup): ✅ added setup tests #8

Workflow file for this run

name: Laravel
on: [push, pull_request]
jobs:
laravel-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./app
steps:
- uses: actions/checkout@v4
- name: Setup PHP..
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv
coverage: none
- name: Install dependencies
# run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
run: composer install --no-interaction --no-progress --prefer-dist
- name: Create environment file..
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Generate application key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests (Unit and Feature tests) via PHPUnit/Pest
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: php artisan test