Skip to content

Commit

Permalink
temp: Added application pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
cyl3x committed Jan 27, 2025
1 parent 950a83b commit bca3a75
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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
ports: ['3306:3306']
steps:
- name: Setup Shopware
uses: shopware/setup-shopware@main
with:
shopware-version: trunk
mysql-version: skip # will use a service
install: true
install-admin: true
install-storefront: true
path: shopware
env:
DATABASE_URL: mysql://root:[email protected]:3306/shopware
- uses: actions/checkout@v4
with:
path: 'braintree'
- name: Setup Braintree
run: |
composer -d braintree install --prefer-dist --no-progress --no-suggest
composer -d braintree setup
ln -s braintree shopware/custom/apps/SwagBraintreeApp
env:
APP_URL: http://localhost:8000
DATABASE_URL: mysql://root:[email protected]:3306/swagbraintree
- name: Install Braintree
run: shopware/bin/console app:install -ac SwagBraintreeApp
env:
DATABASE_URL: mysql://root:[email protected]:3306/shopware

0 comments on commit bca3a75

Please sign in to comment.