-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Integration | ||
|
||
on: | ||
push: | ||
|
||
env: | ||
APP_ENV: prod | ||
APP_URL: http://localhost:8000 | ||
DATABASE_URL: mysql://[email protected]/shopware | ||
|
||
jobs: | ||
installation: | ||
name: Install a Shopware Shop | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.3' | ||
|
||
- name: Start Default MySQL | ||
run: | | ||
sudo mv /var/lib/mysql /var/lib/mysql-old | ||
sudo mkdir /var/lib/mysql | ||
sudo mount -t tmpfs tmpfs /var/lib/mysql -o size=1G | ||
sudo -u mysql mysqld --datadir=/var/lib/mysql --default-time-zone=SYSTEM --initialize-insecure | ||
sudo systemctl start mysql | ||
- name: Create new Shopware Project | ||
run: composer create-project shopware/production . --no-interaction | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ./custom/plugins/deployment-helper | ||
|
||
- name: Install Deployment Helper | ||
run: composer require --dev 'shopware/deployment-helper:*' | ||
|
||
- name: Install Shopware using Helper | ||
run: ./vendor/bin/shopware-deployment-helper deploy | ||
|
||
|
||
|
||
|
||
|
||
|