-
Notifications
You must be signed in to change notification settings - Fork 0
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 #5 from magmodules/release/1.1.1
Release/1.1.1
- Loading branch information
Showing
8 changed files
with
68 additions
and
64 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 |
---|---|---|
@@ -1,45 +1,23 @@ | ||
name: Lint PHP files | ||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
php-71: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
|
||
php-72: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
|
||
php-73: | ||
php-74: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
- uses: prestashop/github-action-php-lint/[email protected] | ||
|
||
php-74: | ||
php-81: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
- uses: prestashop/github-action-php-lint/[email protected] | ||
|
||
php-80: | ||
php-82: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
- uses: prestashop/github-action-php-lint/[email protected] | ||
|
||
php-81: | ||
php-83: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: StephaneBour/[email protected] | ||
with: | ||
dir: './' | ||
- uses: prestashop/github-action-php-lint/[email protected] |
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 |
---|---|---|
@@ -1,24 +1,32 @@ | ||
name: phpstan | ||
on: pull_request | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
PHP_VERSION: [php74-fpm] | ||
MAGENTO_VERSION: [2.4.2] | ||
include: | ||
- PHP_VERSION: php83-fpm | ||
MAGENTO_VERSION: 2.4.7 | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Start Docker | ||
run: docker run --detach --name magento-project-community-edition michielgerritsen/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }} | ||
|
||
- name: Create branch for Composer and remove version from composer.json | ||
run: git checkout -b continuous-integration-test-branch && sed -i '/version/d' ./composer.json | ||
|
||
- name: Upload our code into the docker container | ||
run: docker cp $(pwd) magento-project-community-edition:/data/extensions/ | ||
|
||
- name: Install the extensions in Magento | ||
run: docker exec magento-project-community-edition composer require magmodules/magento2-messagebird:@dev fooman/phpstan-magento2-magic-methods:^0.7 | ||
run: docker exec magento-project-community-edition composer require magmodules/magento2-messagebird:@dev --no-plugins | ||
|
||
- name: Activate the extension | ||
run: docker exec magento-project-community-edition ./retry "php bin/magento module:enable Magmodules_MessageBird && php bin/magento setup:upgrade && php bin/magento setup:di:compile" | ||
|
||
- name: Run PHPStan | ||
run: docker exec magento-project-community-edition /bin/bash -c "./vendor/bin/phpstan analyse -c /data/extensions/*/phpstan.neon /data/extensions" | ||
run: docker exec magento-project-community-edition /bin/bash -c "./vendor/bin/phpstan analyse --no-progress -c /data/extensions/*/phpstan.neon /data/extensions" |
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 |
---|---|---|
@@ -1,29 +1,34 @@ | ||
name: setup:di:compile | ||
on: pull_request | ||
name: Run setup:upgrade and setup:di:compile | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- PHP_VERSION: php71-fpm | ||
MAGENTO_VERSION: 2.3.3 | ||
- PHP_VERSION: php73-fpm | ||
MAGENTO_VERSION: 2.3.6-p1 | ||
- PHP_VERSION: php74-fpm | ||
MAGENTO_VERSION: 2.4.2 | ||
MAGENTO_VERSION: 2.4.0 | ||
- PHP_VERSION: php81-fpm | ||
MAGENTO_VERSION: 2.4.4 | ||
- PHP_VERSION: php82-fpm | ||
MAGENTO_VERSION: 2.4.6 | ||
- PHP_VERSION: php83-fpm | ||
MAGENTO_VERSION: 2.4.7 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Start Docker | ||
run: docker run --detach --name magento-project-community-edition michielgerritsen/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }} | ||
|
||
- name: Upload our code into the docker container | ||
- name: Create branch for Composer and remove version from composer.json | ||
run: git checkout -b continuous-integration-test-branch && sed -i '/version/d' ./composer.json | ||
|
||
- name: Upload the code into the docker container | ||
run: docker cp $(pwd) magento-project-community-edition:/data/extensions/ | ||
|
||
- name: Install the extension in Magento | ||
run: docker exec magento-project-community-edition composer require magmodules/magento2-messagebird:@dev | ||
run: docker exec magento-project-community-edition composer require magmodules/magento2-messagebird:@dev --no-plugins | ||
|
||
- name: Run setup:di:compile | ||
run: docker exec magento-project-community-edition php bin/magento setup:di:compile | ||
run: docker exec magento-project-community-edition ./retry "php bin/magento setup:di:compile" |
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"messagebird_log": { | ||
"column": { | ||
"entity_id": true, | ||
"increment_id": true, | ||
"firstname": true, | ||
"lastname": true, | ||
"email": true, | ||
"status": true, | ||
"type": true, | ||
"created_at": true | ||
}, | ||
"constraint": { | ||
"PRIMARY": true | ||
} | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.