43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
name: swcli-probe
|
|
on:
|
|
push:
|
|
branches: [ci/shopware-cli-probe]
|
|
|
|
jobs:
|
|
probe:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install shopware-cli
|
|
run: |
|
|
curl -sL -o /tmp/shopware-cli.tar.gz \
|
|
https://github.com/shopware/shopware-cli/releases/latest/download/shopware-cli_Linux_x86_64.tar.gz
|
|
mkdir -p /tmp/swcli-extract
|
|
tar -xzf /tmp/shopware-cli.tar.gz -C /tmp/swcli-extract
|
|
echo "=== extracted contents ==="
|
|
ls -la /tmp/swcli-extract
|
|
find /tmp/swcli-extract -type f -name "shopware-cli*" -exec cp {} /usr/local/bin/shopware-cli \;
|
|
chmod +x /usr/local/bin/shopware-cli
|
|
shopware-cli --version
|
|
|
|
- name: Probe extension command help
|
|
run: |
|
|
echo "=== extension --help ==="
|
|
shopware-cli extension --help || true
|
|
echo "=== extension package --help ==="
|
|
shopware-cli extension package --help || true
|
|
echo "=== extension zip --help (check if still a deprecated alias) ==="
|
|
shopware-cli extension zip --help || true
|
|
echo "=== extension validate --help ==="
|
|
shopware-cli extension validate --help || true
|
|
|
|
- name: Try validate against this repo
|
|
run: shopware-cli extension validate . || true
|
|
|
|
- name: Try packaging this repo
|
|
run: |
|
|
shopware-cli extension package . --output .build || true
|
|
echo "=== .build contents ==="
|
|
find .build -maxdepth 3 || true
|