-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·68 lines (67 loc) · 2.19 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
63
64
65
66
67
68
name: Dusk
on: [ push ]
jobs:
dusk:
runs-on: ubuntu-latest
strategy:
fail-fast: true
max-parallel: 1
matrix:
php-versions: [ '8.1' ]
steps:
- name: Checkout
uses: actions/checkout@v2
env:
DEBUG: true
APP_ENV: "testing"
- uses: ./.github/actions/setup-php
with:
php_version: ${{ matrix.php-versions }}
- name: Run Laravel Server
#run: php artisan serve-test --env=testing > /dev/null 2>&1 &
#run: APP_ENV=testing && php -d variables_order=EGPCS -S 127.0.0.1:8000 > /dev/null 2>&1 &
run: APP_ENV=testing && php -d variables_order=EGPCS -S 127.0.0.1:8000 > /home/runner/work/microweber/microweber/storage/logs/serve.log 2>&1 &
- name: Run Dusk Tests
run: |
chmod -R 0755 vendor/laravel/dusk/bin/
php artisan dusk --testsuite MicroweberCoreTests
- name: Run Dusk Shop Tests
run: |
chmod -R 0755 vendor/laravel/dusk/bin/
php artisan dusk --testsuite MicroweberShopTests
- name: Run Dusk Multilanguage Tests
run: |
chmod -R 0755 vendor/laravel/dusk/bin/
php artisan dusk --testsuite MicroweberMultilanguageTests
- name: Run Dusk Template Tests
run: |
chmod -R 0755 vendor/laravel/dusk/bin/
php artisan dusk --testsuite MicroweberTemplatesTests
- name: Run Dusk Slow Tests
run: |
chmod -R 0755 vendor/laravel/dusk/bin/
php artisan dusk --testsuite MicroweberSlowTests
- 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 Laravel Storage
if: failure()
uses: actions/upload-artifact@v2
with:
name: storage
path: storage
- name: Upload Laravel config
if: failure()
uses: actions/upload-artifact@v2
with:
name: config
path: config