-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update cypress.yml #117
Merged
Merged
Update cypress.yml #117
Changes from 13 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f3da755
Update cypress.yml
Lobz d4468da
remove permission edit + change env to prod
Lobz 128b96f
remove permission edit
Lobz 8cc7e7f
Revert "Update cypress.yml"
Lobz 816f279
Revert "remove permission edit"
Lobz be480e4
Revert "Revert "Update cypress.yml""
Lobz d73ce65
revert previous
Lobz ec5e194
trying with cypress action
Lobz 07c940d
testing create admin
Lobz 6ee5f91
gicing write permission to allow logging
Lobz 79100f2
log_channel null (for autotests)
Lobz 5fb841e
trying 'null' inside quotes
Lobz eab694b
logging silent + env config
Lobz a4dcb8a
localhost --> 0.0.0.0
Lobz fbab413
turn on debug
Lobz 81c54dc
using .env.cypress as per laracasts
Lobz fd595c6
needs env
Lobz 580a308
setting 777 permissions (+ smaller test size)
Lobz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,36 @@ | ||
APP_NAME=notaR | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=false | ||
APP_URL=http://localhost: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 | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=mailhog | ||
MAIL_PORT=1025 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS=null | ||
MAIL_FROM_NAME="${APP_NAME}" | ||
|
||
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: 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove