User should recieve a mail notification on event registeration #128 #5
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: DevNation-CMS CI | |
on: | |
push: | |
branches: | |
- main | |
- feature/* | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2.12' | |
- name: Install dependencies | |
run: composer install | |
- name: Create .env file from .env.example | |
run: cp .env.example .env || echo "APP_KEY=base64:$(openssl rand -base64 32)" > .env | |
- name: Generate application key | |
run: php artisan key:generate | |
- name: Create SQLite database file | |
run: | | |
touch database/database.sqlite | |
- name: Run migrations | |
run: php artisan migrate --env=testing | |
- name: Run tests | |
run: php artisan test | |
- name: Clear cache | |
run: php artisan config:clear && php artisan cache:clear |