forked from rapidez/core
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (69 loc) · 2.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
name: dusk
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
dusk:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- magento-version: 2.4.4-p3
magento-php-version: php81-fpm
rapidez-php-version: 8.0
- magento-version: 2.4.4-p3
magento-php-version: php81-fpm
rapidez-php-version: 8.1
- magento-version: 2.4.5-p2
magento-php-version: php81-fpm
rapidez-php-version: 8.0
- magento-version: 2.4.5-p2
magento-php-version: php81-fpm
rapidez-php-version: 8.1
- magento-version: 2.4.6
magento-php-version: php81-fpm
rapidez-php-version: 8.0
- magento-version: 2.4.6
magento-php-version: php81-fpm
rapidez-php-version: 8.1
services:
magento:
image: michielgerritsen/magento-project-community-edition:${{matrix.magento-php-version}}-magento${{matrix.magento-version}}-sample-data
env:
URL: http://localhost:1234/
FLAT_TABLES: true
ports:
- 3307:3306
- 1234:80
name: P${{ matrix.rapidez-php-version }} - M${{matrix.magento-version}} on ${{matrix.magento-php-version}}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.rapidez-php-version }}
extensions: mbstring, dom, fileinfo, mysql
coverage: none
- name: Install dependencies
run: composer install --prefer-dist --no-interaction
- name: Prepare Laravel Dusk
run: composer run dusk:prepare
- name: Compile assets
run: composer run dusk:assets
- name: Wait for index to finish
run: for i in {1..60}; do [[ $(mysql -h 127.0.0.1 -P 3307 -u magento -ppassword -ss -r -e "CALL sys.table_exists('magento', 'catalog_product_flat_1', @exists); SELECT @exists;") == *"BASE TABLE"* ]] && break || sleep 5; done
- name: Execute tests
run: composer run dusk:test
- name: Upload Artifact
if: failure()
uses: actions/upload-artifact@v2
with:
name: artifact
path: |
tests/Browser/screenshots
tests/Browser/console
vendor/orchestra/testbench-dusk/laravel/storage/logs/laravel.log