Bump webpack-dev-middleware and laravel-mix #182
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
name: Checks | |
on: [ pull_request ] | |
jobs: | |
phpunit: | |
name: PHPUnit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: start mysql | |
run: sudo systemctl start mysql.service | |
- name: create database | |
run: mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS testing;' | |
- name: install mysql | |
run: sudo apt update && sudo apt install -y php-mysql | |
- name: Setup PHP environment | |
uses: nanasess/[email protected] | |
with: | |
php-version: '7.4' | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-suggest | |
- name: Run tests | |
run: | | |
cp .env.example .env | |
php artisan key:generate | |
php vendor/bin/phpunit | |
- name: delete database | |
run: mysql -uroot -h127.0.0.1 -proot -e "drop database testing;" | |
- name: stop mysql | |
run: sudo systemctl stop mysql.service |