wip #73
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: Run Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis:7.4 | |
ports: | |
- 6379:6379 | |
mysql: | |
image: mysql:8.0 | |
ports: | |
- 3306:3306 | |
env: | |
MYSQL_DATABASE: laravel | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Setup | |
uses: ./.github/actions/setup | |
with: | |
php-version: '8.3' | |
- name: Authenticate Nova | |
env: | |
NOVA_EMAIL: ${{ secrets.NOVA_EMAIL }} | |
NOVA_PASSWORD: ${{ secrets.NOVA_PASSWORD }} | |
run: composer config http-basic.nova.laravel.com "$NOVA_EMAIL" "$NOVA_PASSWORD" | |
- name: Install Project Dependencies | |
run: composer install -q --no-interaction --no-progress | |
- name: Copy Environment File | |
run: cp .env.example .env | |
- name: Generate Application Key | |
run: php artisan key:generate | |
- name: Run Tests | |
run: php artisan test --compact |