Skip to content

Commit

Permalink
Merge pull request #116 from lageIBUSP/Lobz-patch-cypress
Browse files Browse the repository at this point in the history
Create cypress.yml
  • Loading branch information
Lobz authored May 24, 2024
2 parents 9030304 + 484a61e commit de211f3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Laravel-Docker-Cypress

on:
pull_request:
branches: [ "main" ]

jobs:
laravel-tests:

runs-on: ubuntu-latest

steps:
- 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: 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

0 comments on commit de211f3

Please sign in to comment.