BRAIN-43 - Implemented integration workflow #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |