-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 987 Bytes
/
php-unit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: PHP Unit
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 && sudo apt remove mysql* -y
touch storage/logs/laravel.log
touch storage/logs/crontab.log
touch storage/logs/horizon.log
touch database/database.sqlite
npm install
cp .env.ci .env
./bin/sail up -d
npm run build
- name: Run tests
run: |
./bin/sail art key:generate
export $(cat .env | xargs)
./bin/sail exec mariadb /docker-entrypoint-initdb.d/10-create-testing-database.sh
./bin/sail test
- name: tear down containers
run: |
./bin/sail down