Skip to content

Commit

Permalink
feat: create ci.yml (closes #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasfroeller committed Jan 10, 2024
1 parent 4f1d36c commit c6c5dbb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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.1
tools: composer:v2
coverage: xdebug

- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader
- name: Generate key
run: php artisan key:generate
- name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache
- name: Create Database
env:
DB_CONNECTION: sqlite
DB_DATABASE: database/database.sqlite
run: |
mkdir -p database
touch database/database.sqlite
- name: Execute tests
run: ./vendor/bin/pest

0 comments on commit c6c5dbb

Please sign in to comment.