129 lines (125 loc) · 5.24 KB
/
templates.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: PHP Templates Tests
on: [push,pull_request]
jobs:
main:
runs-on: ubuntu-latest
strategy:
max-parallel: 16
fail-fast: false
matrix:
php-versions: ['7.4']
templates: [
'microweber-templates/shopmag',
'microweber-templates/new-world',
'microweber-templates/dream',
'microweber-templates/template-human-recourses',
'microweber-templates/template-wedding',
'microweber-templates/template-services',
'microweber-templates/template-guesthouse',
'microweber-templates/template-beauty',
'microweber-templates/template-barbershop',
'microweber-templates/template-bamboo',
'microweber-templates/template-yoga-studio',
'microweber-templates/yachting',
'microweber-templates/wine',
'microweber-templates/template-urban',
'microweber-templates/template-theplace',
'microweber-templates/notary-services',
'microweber-templates/green',
'microweber-templates/template-digital',
'microweber-templates/template-comingsoon',
'microweber-templates/template-business',
'microweber-templates/template-blank',
'microweber-templates/template-cryptocurrency',
'microweber-templates/template-simple-shop',
'microweber-templates/template-networking-space',
'microweber-templates/mobile-app',
'microweber-templates/template-apartment',
'microweber-templates/template-tattoo',
'microweber-templates/template-private-school',
'microweber-templates/template-burger',
'microweber-templates/template-hospital',
'microweber-templates/template-tourism',
'microweber-templates/proteinstore',
'microweber-templates/template-landing-shop',
'microweber-templates/template-hostel',
'microweber-templates/bootstrap5',
'microweber-templates/liteness',
'microweber-templates/template-accessories',
'microweber-templates/template-bookstore',
'microweber-templates/template-clothes',
'microweber-templates/template-conference',
'microweber-templates/template-floristry',
'microweber-templates/template-gadgets',
'microweber-templates/template-gallery',
'microweber-templates/template-landingshop2',
'microweber-templates/template-office',
'microweber-templates/template-portfolio',
'microweber-templates/template-skydive',
#'microweber-templates/template-art',
#'microweber-templates/template-coffeeshop',
#'microweber-templates/template-fitpower',
#'microweber-templates/template-car-services',
#'microweber-templates/template-car-services',
#'microweber-templates/template-home-restoration',
#'microweber-templates/big',
]
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: ./.github/actions/setup-php
with:
php_version: ${{ matrix.php-versions }}
# - name: Setup Apache
# uses: thunder/apache-shiva-php-action@v1
# with:
# php-version: '7.4'
# site-directory: /home/runner/work/microweber/microweber/
# # Defaults to 8888
# http-port:
# 8000
- name: Add auth composer
id: create-json
uses: jsdaniell/create-json@1.1.2
with:
name: "auth.json"
json: '{"http-basic":{"packages.microweberapi.com":{"username":"${{ secrets.COMPOSER_USERNAME }}","password":"${{ secrets.COMPOSER_PASSWORD }}"}}}'
- name: Install Composer dependencies
run: |
composer install --no-progress --prefer-dist --optimize-autoloader
chmod -R 0755 vendor/laravel/dusk/bin/
rm -rf /home/runner/work/microweber/microweber/templates/new-world/
rm -rf /home/runner/work/microweber/microweber/templates/shopmag/
- name: Install template
run: composer require ${{ matrix.templates }} --no-cache
- name: Install Microweber with template ${{ matrix.templates }}
run: php artisan microweber:install --email=admin@site.com --username=1 --password=1 --db-host=/home/runner/work/microweber/microweber/storage/database1.sqlite --db-name=microweber --db-password=nopass --db-driver=sqlite --db-prefix=site_ --template=${{ matrix.templates }} --default-content=1
- name: Run Laravel Server
run: 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 Browse test
run: php artisan dusk --filter=BrowsePagesForBrokenTagsTest
- 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