Adds all the things 🎉 #48
Workflow file for this run
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@v2 | |
with: | |
fetch-depth: 0 # important! | |
- name: setup php | |
run: | | |
git submodule init | |
git submodule update --remote --merge | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
cp .env.ci .env | |
./bin/sail up -d | |
- name: Run tests | |
run: | | |
touch storage/logs/laravel.log | |
touch storage/logs/crontab.log | |
touch storage/logs/horizon.log | |
touch database/database.sqlite | |
./bin/sail art key:generate | |
export $(cat .env | xargs) | |
./bin/sail test | |
- name: tear down containers | |
run: | | |
./bin/sail down |