Skip to content

Commit be80042

Browse files
Feature: Add tests
1 parent 05ee400 commit be80042

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: test-replacements.yml
2+
on:
3+
push:
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
cfg:
12+
- { PHP_VERSION: php82-fpm, MAGENTO_VERSION: 2.4.6 }
13+
- { PHP_VERSION: php83-fpm, MAGENTO_VERSION: 2.4.7-p8 }
14+
- { PHP_VERSION: php84-fpm, MAGENTO_VERSION: 2.4.8-p3 }
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- name: Start Docker
19+
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/magento-project-community-edition:${{ matrix.cfg.PHP_VERSION }}-magento${{ matrix.cfg.MAGENTO_VERSION }}
20+
21+
- name: Install the extension
22+
run: |
23+
docker cp $(pwd) magento-project-community-edition:/data/extensions/
24+
docker exec magento-project-community-edition composer config --no-plugins allow-plugins.yireo/magento2-replace-tools true
25+
docker exec magento-project-community-edition composer require --dev yireo/magento2-replace-tools:@dev --no-install --no-plugins --no-interaction
26+
27+
- name: Run the replace commands
28+
run: |
29+
docker exec magento-project-community-edition composer update --dev yireo/magento2-replace-tools --no-security-blocking --with-all-dependencies
30+
docker exec magento-project-community-edition composer replace:bulk:add yireo/magento2-replace-all
31+
docker exec magento-project-community-edition composer replace:build
32+
docker exec magento-project-community-edition composer update --lock --no-security-blocking
33+
34+
- name: Run setup:upgrade
35+
run: |
36+
docker exec magento-project-community-edition php bin/magento cache:flush
37+
docker exec magento-project-community-edition php bin/magento setup:upgrade
38+
39+
- name: Validate that setup:di:compile still works
40+
run: |
41+
docker exec magento-project-community-edition php bin/magento setup:di:compile

0 commit comments

Comments
 (0)