forked from EotvosCollegium/mars
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 995 Bytes
/
ci.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
35
36
37
38
39
40
41
42
43
on: [push, pull_request]
name: CI
jobs:
phpunit:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.2
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install composer dependencies
run: |
composer install --no-scripts
- name: Install front-end dependencies
run: |
npm install
npm run dev
- name: Prepare Laravel Application
run: |
cp .env.ci .env
php artisan key:generate
- name: Set up database
run: |
php artisan migrate:fresh
- name: Run Testsuite
run: vendor/bin/phpunit tests/