Skip to content

hackgreenville-com-435 Build out db seeders to create an org and some org related data #291

hackgreenville-com-435 Build out db seeders to create an org and some org related data

hackgreenville-com-435 Build out db seeders to create an org and some org related data #291

Workflow file for this run

name: Run unit tests
on:
pull_request:
branches:
- master
- develop
jobs:
tests:
runs-on: ubuntu-latest
container: lorisleiva/laravel-docker:8.1
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: hackgreenville
MYSQL_USER: hackgreenville
MYSQL_ROOT_PASSWORD: test
MYSQL_PASSWORD: test
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v2
- name: install php dependencies
run: composer install
- name: install node dependencies
run: yarn install
- name: copy environment variables to .env
run: cp .env.ci .env
- name: migrate database
run: php artisan migrate --seed
- name: Build website
run: yarn build
- name: run tests
run: php artisan test