Skip to content

fixed the test

fixed the test #41

Workflow file for this run

name: tests
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
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 Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Install Node Dependencies
run: npm ci
- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader
- name: Copy Environment File
run: cp .env.example .env
- name: Generate Application Key
run: php artisan key:generate
- name: Build Assets
run: npm run build
# - name: Tests
# run: ./vendor/bin/pest
- name: Run Code Formatting
run: ./vendor/bin/pint
- name: Run Code Static Analysis
run: ./vendor/bin/phpstan analyse --memory-limit=2G
- name: Execute tests (Unit and Feature tests) via Pest
env:
DB_CONNECTION: mysql
DB_DATABASE: db_test_laravel
DB_PORT: 33306
DB_USER: root
run: ./vendor/bin/pest --parallel