ci: PHP via apt in a bookworm container, retry shopware-cli download
setup-php hangs on the runner even with runner=self-hosted; the CLI download returned a non-gzip body once under concurrent load. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
221ffece3f
commit
1ec194b464
3 files changed
+16
-11
No files matched your search
@@ -20,7 +20,8 @@ jobs:
|
||||
node-version: '20'
|
||||
- name: Install shopware-cli
|
||||
run: |
|
||||
curl -sL https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli_Linux_x86_64.tar.gz | tar -xz -C /tmp shopware-cli
|
||||
curl -fsSL --retry 5 --retry-delay 10 -o /tmp/swcli.tgz https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli_Linux_x86_64.tar.gz
|
||||
tar -xzf /tmp/swcli.tgz -C /tmp shopware-cli
|
||||
sudo install /tmp/shopware-cli /usr/local/bin/shopware-cli || install /tmp/shopware-cli /usr/local/bin/shopware-cli
|
||||
- name: Validate extension
|
||||
run: shopware-cli extension validate .
|
||||
@@ -36,7 +37,8 @@ jobs:
|
||||
node-version: '20'
|
||||
- name: Install shopware-cli
|
||||
run: |
|
||||
curl -sL https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli_Linux_x86_64.tar.gz | tar -xz -C /tmp shopware-cli
|
||||
curl -fsSL --retry 5 --retry-delay 10 -o /tmp/swcli.tgz https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli_Linux_x86_64.tar.gz
|
||||
tar -xzf /tmp/swcli.tgz -C /tmp shopware-cli
|
||||
sudo install /tmp/shopware-cli /usr/local/bin/shopware-cli || install /tmp/shopware-cli /usr/local/bin/shopware-cli
|
||||
- name: Package extension
|
||||
run: shopware-cli extension package . --output-directory .build --filename package.zip --git-commit "$GITHUB_SHA"
|
||||
@@ -55,6 +57,9 @@ jobs:
|
||||
|
||||
phpunit:
|
||||
runs-on: ubuntu-latest
|
||||
# shivammathur/setup-php hangs on this runner, so PHP comes from Debian bookworm (8.2) via apt.
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
services:
|
||||
database:
|
||||
image: mariadb:11.4
|
||||
@@ -64,17 +69,16 @@ jobs:
|
||||
DATABASE_URL: mysql://root:root@database:3306/shopware
|
||||
APP_ENV: test
|
||||
APP_URL: http://localhost
|
||||
COMPOSER_MEMORY_LIMIT: '-1'
|
||||
COMPOSER_ALLOW_SUPERUSER: '1'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: plugin-src
|
||||
- uses: shivammathur/setup-php@v2
|
||||
env:
|
||||
runner: self-hosted # non-GitHub runner (act): without this setup-php hangs
|
||||
with:
|
||||
php-version: '8.3'
|
||||
extensions: gd, intl, pdo_mysql, zip, curl, mbstring, dom, xml, fileinfo, sodium, bcmath
|
||||
tools: composer
|
||||
- name: Install PHP and tools
|
||||
run: |
|
||||
apt-get update -q
|
||||
apt-get install -y -q --no-install-recommends php-cli php-gd php-intl php-mysql php-zip php-curl php-mbstring php-xml php-bcmath composer unzip jq git ca-certificates
|
||||
- name: Wait for the database
|
||||
run: |
|
||||
for i in $(seq 60); do
|
||||
|
||||
Reference in new issue
Block a user