-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from shopware/20241011-1843-act-compat
feat: improve compatibility with `act`, integration tests
- Loading branch information
Showing
1 changed file
with
31 additions
and
3 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 |
---|---|---|
|
@@ -207,16 +207,44 @@ runs: | |
echo "APP_ENV=${{ inputs.env }}" >> "$GITHUB_ENV" | ||
echo "APP_SECRET=def00000bb5acb32b54ff8ee130270586eec0e878f7337dc7a837acc31d3ff00f93a56b595448b4b29664847dd51991b3314ff65aeeeb761a133b0ec0e070433bff08e48" >> "$GITHUB_ENV" | ||
echo "APP_URL=http://localhost:8000" >> "$GITHUB_ENV" | ||
- name: Setup Shopware Database URL | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: | | ||
echo "DATABASE_URL=mysql://[email protected]/shopware" >> "$GITHUB_ENV" | ||
if: ${{ env.DATABASE_URL == '' }} # Don't override if already set | ||
|
||
- name: Configure HMAC JWT | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: | | ||
yq -n '.shopware.api.jwt_key.use_app_secret = true' | tee config/packages/zz-shopware.yaml | ||
if: ${{ hashFiles('src/Core/Framework/Api/OAuth/JWTConfigurationFactory.php') != '' }} | ||
|
||
- name: Install Shopware | ||
if: inputs.install == 'true' | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: bin/console system:install --create-database --drop-database --basic-setup --force --shop-locale=${{ inputs.install-locale }} --shop-currency=${{ inputs.install-currency }} | ||
run: | | ||
composer run init:db -- --shop-locale=${{ inputs.install-locale }} --shop-currency=${{ inputs.install-currency }} | ||
- name: Build JS | ||
if: inputs.installAdmin == 'true' || inputs.installStorefront == 'true' | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: | | ||
composer run build:js | ||
bin/console assets:install --env="${{ inputs.env }}" | ||
- name: Assign default Storefront theme to all sales channels | ||
if: inputs.installStorefront == 'true' | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: bin/console theme:change --sync --all Storefront | ||
|
||
- name: Start Webserver | ||
if: inputs.install == 'true' && inputs.env == 'e2e' | ||
if: inputs.install == 'true' | ||
shell: bash | ||
working-directory: ${{ inputs.path }} | ||
run: symfony server:start -d | ||
run: symfony server:start -d --no-tls --allow-http --port=8000 |