feat: align plugin and pipeline with Shopware guidelines #13

Merged
haylan merged 13 commits from ci/shopware-guideline-compliance into main 2026-10-03 22:46:18 +00:00
2 changed files with 10 additions and 6 deletions
Showing only changes of commit 221ffece3f - Show all commits

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
compatibility_date: 2026-02-11
# shopware-cli extension configuration (build/package/validate) # shopware-cli extension configuration (build/package/validate)
build: build:
zip: zip:
+9 -6
View File
@@ -15,9 +15,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '20'
@@ -63,9 +60,6 @@ jobs:
image: mariadb:11.4 image: mariadb:11.4
env: env:
MARIADB_ROOT_PASSWORD: root MARIADB_ROOT_PASSWORD: root
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=5s --health-timeout=5s --health-retries=20
env: env:
DATABASE_URL: mysql://root:root@database:3306/shopware DATABASE_URL: mysql://root:root@database:3306/shopware
APP_ENV: test APP_ENV: test
@@ -75,10 +69,19 @@ jobs:
with: with:
path: plugin-src path: plugin-src
- uses: shivammathur/setup-php@v2 - uses: shivammathur/setup-php@v2
env:
runner: self-hosted # non-GitHub runner (act): without this setup-php hangs
with: with:
php-version: '8.3' php-version: '8.3'
extensions: gd, intl, pdo_mysql, zip, curl, mbstring, dom, xml, fileinfo, sodium, bcmath extensions: gd, intl, pdo_mysql, zip, curl, mbstring, dom, xml, fileinfo, sodium, bcmath
tools: composer tools: composer
- name: Wait for the database
run: |
for i in $(seq 60); do
(echo > /dev/tcp/database/3306) 2>/dev/null && exit 0
sleep 2
done
echo "::error::database service did not come up"; exit 1
- name: Resolve plugin name - name: Resolve plugin name
run: | run: |
# plugin directory name = short class name of extra.shopware-plugin-class # plugin directory name = short class name of extra.shopware-plugin-class