Skip to content

Commit

Permalink
ci: add smoke test for admin and storefront build
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Dec 4, 2024
1 parent 61e1828 commit af1b0e4
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Compile shopware-cli
run: go build

- name: Move to bin
run: sudo mv shopware-cli /usr/local/bin/shopware-cli

- name: Checkout Plugin
uses: actions/checkout@v4
with:
Expand All @@ -30,26 +33,26 @@ jobs:
path: 'plugin'

- name: Create Shopware
run: ./shopware-cli project create shopware 6.5.7.3
run: shopware-cli project create shopware 6.5.7.3

- name: Build asset of Plugin
run: ./shopware-cli extension zip plugin
run: shopware-cli extension zip plugin

- name: Build asset of Plugin without Git
run: ./shopware-cli extension zip plugin --disable-git --release
run: shopware-cli extension zip plugin --disable-git --release

- name: Validate Plugin
run: ./shopware-cli extension validate FroshTools.zip
run: shopware-cli extension validate FroshTools.zip

- name: Get Changelog
run: ./shopware-cli extension get-changelog FroshTools.zip
run: shopware-cli extension get-changelog FroshTools.zip

- name: Build asset against custom PROJECT_ROOT
env:
SHOPWARE_PROJECT_ROOT: ${{ github.workspace }}/shopware
run: |
mv plugin/.shopware-extension.yml plugin/.shopware-extension-disable.yml
./shopware-cli extension build plugin
shopware-cli extension build plugin
mv plugin/.shopware-extension-disable.yml plugin/.shopware-extension.yml
- name: Install a Storefront Plugin
Expand All @@ -58,5 +61,13 @@ jobs:
composer require 'frosh/platform-filter-search:*' --no-interaction --no-scripts
rm -rf vendor
- name: Build Storefront
working-directory: shopware
run: shopware-cli project storefront-build

- name: Build Administration
working-directory: shopware
run: shopware-cli project admin-build

- name: Setup the project
run: ./shopware-cli project ci shopware

0 comments on commit af1b0e4

Please sign in to comment.