Skip to content

Commit

Permalink
Refactor all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 23, 2024
1 parent 4505b40 commit da1e0c3
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/extdn-integration-tests-pre-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
composer config minimum-stability dev
composer config prefer-stable false

composer require yireo/magento2-integration-test-helper --no-update
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

6 changes: 3 additions & 3 deletions .github/workflows/extdn-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ 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 }}
MAGENTO_POST_INSTALL_SCRIPT: .github/workflows/extdn-integration-tests-post-install.sh
steps:
- uses: actions/checkout@v2

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
Expand All @@ -43,8 +44,7 @@ jobs:

- uses: extdn/github-actions-m2/magento-integration-tests/8.3@master
env:
MAGENTO_VERSION: '2.4.7-p1'
COMPOSER_VERSION: 2
MAGENTO_VERSION: '2.4.7'
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ composer config minimum-stability dev
composer config prefer-stable false

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

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
12 changes: 8 additions & 4 deletions .github/workflows/extdn-phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: "Determine composer cache directory"
id: "determine-composer-cache-directory"
run: "echo \"::set-output name=directory::$(composer config cache-dir)\""

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

- uses: extdn/github-actions-m2/magento-phpstan/8.3@master
with:
composer_name: ${{ secrets.COMPOSER_NAME }}
composer_name: yireo/magento2-next-gen-images
composer_version: 2
phpstan_level: 1
magento_pre_install_script: .github/workflows/extdn-phpstan-tests-pre-install.sh
phpstan_level: 2
magento_pre_install_script: .github/workflows/extdn-phpstan-pre-install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: ExtDN Coding Standard
name: ExtDN Static Tests
on: [push]

jobs:
static:
name: Coding Standard
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-coding-standard/8.3@master
with:
phpcs_severity: 8
phpcs_report: full
phpcs_extensions: php
4 changes: 2 additions & 2 deletions .github/workflows/extdn-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:

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

0 comments on commit da1e0c3

Please sign in to comment.