User should recieve a mail notification on event registeration #128 #3
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 SQLite database file | |
run: | | |
touch database/database.sqlite | |
- name: Set application key | |
run: | | |
php artisan key:generate | |
- 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 |