-
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.
- Loading branch information
Showing
5 changed files
with
8,069 additions
and
33 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
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,36 +1,40 @@ | ||
name: Plausible (Magento 2) for code review | ||
|
||
on: | ||
push: | ||
branches: ["main", "develop"] | ||
pull_request: | ||
branches: ["main", "develop"] | ||
push: | ||
branches: [ "main", "develop" ] | ||
pull_request: | ||
branches: [ "main", "develop" ] | ||
|
||
jobs: | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP, with composer and extensions | ||
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | ||
with: | ||
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, zip | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Install dependencies | ||
run: composer install --no-interaction --no-progress | ||
|
||
- name: Check for vulnerabilities | ||
uses: symfonycorp/security-checker-action@v4 | ||
|
||
- name: Run Easy Coding Standard | ||
run: vendor/bin/ecs check | ||
review: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP, with composer and extensions | ||
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php | ||
with: | ||
php-version: '8.2' | ||
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, mysql, zip | ||
|
||
- name: Cache Composer packages | ||
id: composer-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor | ||
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-php- | ||
- name: Copy composer for ci | ||
run: php -r "copy('composer.json.ci', 'composer.json');" | ||
|
||
- name: Add HTTP basic auth credentials | ||
run: echo '${{ secrets.COMPOSER_AUTH_JSON }}' > $GITHUB_WORKSPACE/auth.json | ||
|
||
- name: Install dependencies | ||
run: composer install --no-interaction --no-progress | ||
|
||
- name: Run Easy Coding Standard | ||
run: vendor/bin/ecs check |
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,45 @@ | ||
{ | ||
"name": "pixelopen/magento-plausible", | ||
"description": "Add Plausible Analytics to Magento", | ||
"require": { | ||
"php": "^8", | ||
"magento/module-backend": "*", | ||
"magento/module-checkout": "*", | ||
"magento/module-config": "*", | ||
"magento/module-contact": "*", | ||
"magento/module-customer": "*", | ||
"magento/module-store": "*", | ||
"magento/framework": "*" | ||
}, | ||
"type": "magento2-module", | ||
"version": "100.2.1", | ||
"autoload": { | ||
"files": [ | ||
"registration.php" | ||
], | ||
"psr-4": { | ||
"PixelOpen\\Plausible\\": "" | ||
} | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://repo.magento.com/" | ||
} | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Pixel Open", | ||
"homepage": "https://pixel-open.org/", | ||
"role": "Developer" | ||
} | ||
], | ||
"config": { | ||
"allow-plugins": { | ||
"magento/composer-dependency-version-audit-plugin": true | ||
} | ||
}, | ||
"require-dev": { | ||
"symplify/easy-coding-standard": "^12.1" | ||
} | ||
} |
Oops, something went wrong.