-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (69 loc) · 2.03 KB
/
application.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
name: Application tests
on:
workflow_dispatch:
pull_request:
paths:
- '**/*.php'
- '*.dist'
- composer.json
- composer.lock
- symfony.lock
- infection.json5
- .php-cs-fixer.dist.php
- phpstan.neon
- .github/workflows/php.yml
jobs:
application:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:10.11
env:
MARIADB_ROOT_PASSWORD: root
MYSQL_DATABASE: swagbraintree_test
ports: ['3306:3306']
steps:
- name: Setup Shopware
uses: shopware/setup-shopware@main
env:
DATABASE_URL: mysql://root:[email protected]:3306/shopware
with:
shopware-version: trunk
mysql-version: skip # will use a service
install: true
install-admin: true
install-storefront: true
path: shopware
- uses: actions/checkout@v4
with:
path: braintree
- name: Setup Braintree (PHP)
uses: ./braintree/.github/actions/setup-php
with:
path: braintree
- name: Setup Braintree (Node)
uses: ./braintree/.github/actions/setup-node
with:
path: braintree
- name: Setup Braintree (Database)
env:
APP_URL: http://localhost:8001
DATABASE_URL: mysql://root:[email protected]:3306/swagbraintree
run: composer -d braintree setup
- name: Start Braintree
working-directory: braintree
env:
APP_URL: http://localhost:8001
DATABASE_URL: mysql://root:[email protected]:3306/swagbraintree
SYMFONY_DAEMON: '1'
SYMFONY_NO_TLS: '1'
SYMFONY_ALLOW_HTTP: '1'
SYMFONY_PORT: '8001'
SYMFONY_ALLOW_ALL_IP: '1'
run: symfony server:start
- name: Install Braintree
env:
DATABASE_URL: mysql://root:[email protected]:3306/shopware
run: |
ln -s braintree shopware/custom/apps/SwagBraintreeApp
shopware/bin/console app:install -ac SwagBraintreeApp