Skip to content

Update cypress.yml

Update cypress.yml #8

Workflow file for this run

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');"
- name: Install
run: ./deploy.sh
- name: Generate key
run: docker exec notar_app_1 php artisan key:generate
- name: Create Database
run: docker exec -t notar_app_1 php artisan migrate
- 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