test: fix test #7
This file contains 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: Tests | |
on: ['push', 'pull_request'] | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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@v3 | |
with: | |
node-version: 22 | |
- name: Create .env file | |
run: cp .env.example .env | |
- name: Create database | |
run: touch database/database.sqlite | |
- name: Install Dependencies | |
run: composer install --no-interaction --prefer-dist --optimize-autoloader | |
- name: Install node dependencies | |
run: npm install | |
- name: Build assets | |
run: npm run build | |
- name: Generate key | |
run: php artisan key:generate --force | |
- name: Run migrations | |
run: php artisan migrate --force | |
- name: Run tests | |
run: ./vendor/bin/pest --ci |