CI with Laravel/MySQL/Cypress using Github Actions
Principles
- Fast-running tests (linter & unit) at the start
- Slow tests (e2e) at the end
- Test environment echoes production environment
- Don't change major elements of the production environment
- (Try things. See what breaks it)
- To run this project, you must have PHP 7 installed.
- You should setup a host on your web server for your local domain.
Begin by cloning this repository to your machine, and installing all Composer & NPM dependencies.
git clone https://github.com/lupanvi/laragram.git
cd laragram
touch .env
composer install && npm install
php artisan key:generate
CREATE DATABASE forge;
GRANT ALL on forge.* to forge@localhost;
php artisan migrate --seed
php artisan storage:link
npm run dev
Next, boot up a server and visit your laragram app.
php artisan serve
- Visit:
http://your-laragram-url/login
and write the demo credentials: user: [email protected] , password: 123456 , and press the login button - You will be redirected to the home page, where you can see and add pictures with filters
phpunit
npm run server:test
(See open pull request)