Skip to content

Commit

Permalink
ci(*): Update action to handle new ddev add-on behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Mar 17, 2023
1 parent ebd23be commit 5bbd543
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/end-to-end-auto-prepend-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,8 @@ jobs:
# override redis.conf
ddev get julienloizelet/ddev-tools
- name: Add Crowdsec and Playwright
run: |
ddev get julienloizelet/ddev-crowdsec-php
ddev get julienloizelet/ddev-playwright
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
cp .ddev/okaeli-add-on/magento2/commands/host/crowdsec-config .ddev/commands/host/
ddev restart
- name: Add Playwright
run: ddev get julienloizelet/ddev-playwright

- name: Clone M2 ${{ env.EXTENSION_NAME }} files
uses: actions/checkout@v3
Expand Down Expand Up @@ -101,11 +96,13 @@ jobs:
ddev magento module:enable ${{ env.EXTENSION_NAME }}
ddev magento setup:upgrade
ddev magento setup:static-content:deploy -f
ddev crowdsec-config
ddev magento cache:flush
ddev get julienloizelet/ddev-crowdsec-php
ddev restart
- name: Prepare for playwright test
run: |
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
ddev magento setup:performance:generate-fixtures ./varnish-profile.xml
ddev magento cache:flush
mkdir -p var/crowdsec/tls
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/end-to-end-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,8 @@ jobs:
# override redis.conf
ddev get julienloizelet/ddev-tools
- name: Add Crowdsec and Playwright
run: |
ddev get julienloizelet/ddev-crowdsec-php
ddev get julienloizelet/ddev-playwright
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
cp .ddev/okaeli-add-on/magento2/commands/host/crowdsec-config .ddev/commands/host/
ddev restart
- name: Playwright
run: ddev get julienloizelet/ddev-playwright

- name: Clone M2 ${{ env.EXTENSION_NAME }} files
uses: actions/checkout@v3
Expand Down Expand Up @@ -107,11 +102,13 @@ jobs:
ddev magento module:enable ${{ env.EXTENSION_NAME }}
ddev magento setup:upgrade
ddev magento setup:static-content:deploy -f
ddev crowdsec-config
ddev magento cache:flush
ddev get julienloizelet/ddev-crowdsec-php
ddev restart
- name: Prepare for playwright test
run: |
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
ddev magento setup:performance:generate-fixtures ./varnish-profile.xml
ddev magento cache:flush
mkdir -p var/crowdsec/tls
Expand Down
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,8 @@ jobs:
# override redis.conf
ddev get julienloizelet/ddev-tools
- name: Add Crowdsec and Playwright
run: |
ddev get julienloizelet/ddev-crowdsec-php
ddev get julienloizelet/ddev-playwright
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
cp .ddev/okaeli-add-on/magento2/commands/host/crowdsec-config .ddev/commands/host/
ddev restart
- name: Playwright
run: ddev get julienloizelet/ddev-playwright

- name: Clone M2 ${{ env.EXTENSION_NAME }} files
uses: actions/checkout@v3
Expand Down Expand Up @@ -236,11 +231,13 @@ jobs:
ddev magento module:enable ${{ env.EXTENSION_NAME }}
ddev magento setup:upgrade
ddev magento setup:static-content:deploy -f
ddev crowdsec-config
ddev magento cache:flush
ddev get julienloizelet/ddev-crowdsec-php
ddev restart
- name: Prepare for playwright test
run: |
cp .ddev/okaeli-add-on/magento2/custom_files/varnish-profile.xml varnish-profile.xml
ddev magento setup:performance:generate-fixtures ./varnish-profile.xml
ddev magento cache:flush
mkdir -p var/crowdsec/tls
Expand Down
5 changes: 2 additions & 3 deletions doc/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ ddev get ddev/ddev-memcached
ddev get ddev/ddev-elasticsearch
ddev get julienloizelet/ddev-tools
ddev get julienloizelet/ddev-playwright
ddev get julienloizelet/ddev-crowdsec-php
cp .ddev/okaeli-add-on/config_overrides/crowdsec/config.crowdsec.yaml .ddev/config.crowdsec.yaml
cp .ddev/okaeli-add-on/magento2/commands/host/crowdsec-config .ddev/commands/host/
ddev start
```

Expand Down Expand Up @@ -143,6 +140,8 @@ ddev magento c:c
ddev magento module:enable CrowdSec_Bouncer
ddev magento setup:upgrade
ddev magento cache:flush
ddev get julienloizelet/ddev-crowdsec-php
ddev restart
```

### Extension quality
Expand Down

0 comments on commit 5bbd543

Please sign in to comment.