Skip to content

Commit

Permalink
Add laravel stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ewhanson committed Feb 9, 2024
1 parent b873109 commit f30c8a7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:


jobs:
ci:
pest-tests:
runs-on: ubuntu-latest

steps:
Expand All @@ -24,8 +24,25 @@ jobs:
tools: composer:v2
coverage: xdebug

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Tests
- name: Generate 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: Run Tests
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: ./vendor/bin/pest

0 comments on commit f30c8a7

Please sign in to comment.