-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from lageIBUSP/Lobz-patch-1
Update cypress.yml
- Loading branch information
Showing
5 changed files
with
49 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
APP_NAME=notaR | ||
APP_ENV=local | ||
APP_KEY=base64:ikjUI2Mbr1dKGd3fvDDB+ldw4qZ9bs3qQcySGFO5axQ= | ||
APP_DEBUG=true | ||
APP_URL=http://0.0.0.0:8000 | ||
APP_SCHEME=http | ||
APP_SERVICE=app | ||
APP_TIMEZONE='America/Sao_Paulo' | ||
|
||
LOG_CHANNEL=silent | ||
LOG_LEVEL=none | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=mysql | ||
DB_PORT=3306 | ||
DB_DATABASE=notaR | ||
DB_USERNAME=notaR | ||
DB_PASSWORD=password | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
QUEUE_CONNECTION=sync | ||
SESSION_DRIVER=file | ||
SESSION_LIFETIME=120 | ||
|
||
WWWUSER=1000 | ||
WWWGROUP=1000 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
name: Laravel-Docker-Cypress | ||
name: Cypress | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
laravel-tests: | ||
|
||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set permissions | ||
run: sudo chmod -R 777 storage bootstrap/cache | ||
- name: Copy .env | ||
run: php -r "file_exists('.env') || copy('.env.example', '.env');" | ||
run: php -r "file_exists('.env') || copy('.env.cypress', '.env');" | ||
- name: Install | ||
run: ./deploy.sh | ||
- name: Generate key | ||
run: docker exec notar_app_1 php artisan key:generate | ||
- name: Directory Permissions | ||
run: chmod -R 777 storage bootstrap/cache | ||
- name: Create Database | ||
run: docker exec -t notar_app_1 php artisan migrate | ||
- name: Execute tests | ||
run: npx cypress run | ||
- name: Create admin user | ||
run: docker exec -t notar_app_1 php artisan migrate:admin novasenha | ||
- name: Cypress run | ||
uses: cypress-io/github-action@v6 | ||
with: | ||
config-file: cypress.config.js |
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
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
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