Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 23, 2024
1 parent 71cfa55 commit d96ced5
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/extdn-integration-tests-pre-install-m23.sh

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/extdn-integration-tests-pre-install-m24.sh

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/extdn-integration-tests-pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
composer config minimum-stability dev
composer config prefer-stable false

composer require yireo/magento2-integration-test-helper
composer require --dev yireo/magento2-integration-test-helper --no-update

composer require yireo/magento2-replace-bundled:^4.0 --no-update
composer require yireo/magento2-replace-inventory:^4.0 --no-update
composer require yireo/magento2-replace-pagebuilder:^4.0 --no-update
16 changes: 10 additions & 6 deletions .github/workflows/extdn-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
ports:
Expand Down Expand Up @@ -36,11 +36,15 @@ jobs:
MAGENTO_POST_INSTALL_SCRIPT: .github/workflows/extdn-integration-tests-post-install.sh
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-integration-tests/7.4@master
env:
MAGENTO_VERSION: '2.4.3-p2'
MAGENTO_PRE_INSTALL_SCRIPT: .github/workflows/extdn-integration-tests-pre-install-m24.sh
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: extdn/github-actions-m2/magento-integration-tests/8.3@master
env:
MAGENTO_VERSION: '2.4.7'
MAGENTO_PRE_INSTALL_SCRIPT: .github/workflows/extdn-integration-tests-pre-install-m24.sh
with:
magento_pre_install_script: .github/workflows/extdn-integration-tests-pre-install.sh
magento_post_install_script: .github/workflows/extdn-integration-tests-post-install.sh
3 changes: 2 additions & 1 deletion .github/workflows/extdn-phpstan-pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
composer config minimum-stability dev
composer config prefer-stable false

composer require --dev yireo/magento2-integration-test-helper --no-update
composer require yireo/magento2-integration-test-helper --no-update

composer config --no-plugins allow-plugins true

composer require --dev phpstan/extension-installer --no-update
composer require --dev bitexpert/phpstan-magento --no-update

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/extdn-phpstan.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: ExtDN M2 PHPStan
on: [ push, pull_request ]
name: ExtDN PHPStan
on: [push, pull_request]

jobs:
phpstan:
name: M2 PHPStan
name: PHPStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,7 +16,6 @@ jobs:
uses: actions/cache@v2
with:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
#path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: extdn/github-actions-m2/magento-phpstan/8.3@master
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/extdn-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ jobs:
env:
MAGENTO_MARKETPLACE_USERNAME: ${{ secrets.MAGENTO_MARKETPLACE_USERNAME }}
MAGENTO_MARKETPLACE_PASSWORD: ${{ secrets.MAGENTO_MARKETPLACE_PASSWORD }}
REPOSITORY_URL: https://repo.magento.com/
MODULE_NAME: ${{ secrets.MODULE_NAME }}
COMPOSER_NAME: ${{ secrets.COMPOSER_NAME }}
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-unit-tests/7.4@master
env:
MAGENTO_VERSION: '2.4.3-p2'
- uses: extdn/github-actions-m2/magento-unit-tests/8.1@master

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- uses: extdn/github-actions-m2/magento-unit-tests/8.3@master
env:
MAGENTO_VERSION: '2.4.4'
MAGENTO_VERSION: '2.4.7'
COMPOSER_VERSION: 2

0 comments on commit d96ced5

Please sign in to comment.