forked from Angel-Invest/angel-invest-web
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·62 lines (58 loc) · 1.61 KB
/
dusk.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Laravel Dusk Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
laravel-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: root
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
POSTGRES_DB: laravel
POSTGRES_USER: root
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Copy .env
run: cp .env.example .env
- name: Install Dependencies
run: composer install --quiet --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate Application Key
run: php artisan key:generate
- name: Run migrations
run: php artisan migrate --seed
- name: Upgrade Chrome Driver
run: php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: ./vendor/laravel/dusk/bin/chromedriver-linux &
- name: Run Laravel Server
run: php artisan serve --no-reload &
- name: Excute tests (Dusk tests)
env:
APP_URL: "http://127.0.0.1:8000"
run: php artisan dusk
- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v2
with:
name: screenshots
path: tests/Browser/screenshots
- name: Upload Console Logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: console
path: tests/Browser/console
- name: Upload Sources
if: failure()
uses: actions/upload-artifact@v2
with:
name: sources
path: tests/Browser/source