Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .bc-exclude.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php declare(strict_types=1);

return [
'filePatterns' => [
'**/src/DevOps/**',
],
'errors' => [
// vendor false positive
\preg_quote('An enum expression Monolog\Level::Debug is not supported in class Monolog\Handler\AbstractHandler'),
// Storefront package is not installed
\preg_quote('"Shopware\Storefront\Framework\Cookie\CookieProviderInterface" could not be found in the located source'),
],
];
2 changes: 1 addition & 1 deletion .github/actions/setup-paypal/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ runs:
fi
echo "deps=$(echo $DEPS | jq -c .)" >> "$GITHUB_OUTPUT"
echo "repos=$(echo $REPOS | jq -c .)" >> "$GITHUB_OUTPUT"
- uses: shopware/github-actions/setup-extension@main
- uses: shopware/github-actions/setup-extension@b1d0a9fddcf38cd550f328ea00e1beb7536fa494
with:
extensionName: ${{ github.event.repository.name }}
mysqlVersion: ${{ inputs.mysql-version }}
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,26 @@ jobs:
- name: Run ecs
run: composer -d custom/plugins/${{ github.event.repository.name }} run ecs

bc-check:
runs-on: ubuntu-latest
steps:
- name: Checkout SwagPayPal
uses: actions/checkout@v4
with:
path: custom/plugins/${{ github.event.repository.name }}

- name: Setup SwagPayPal
uses: ./custom/plugins/SwagPayPal/.github/actions/setup-paypal

- name: Fetch SwagPayPal
working-directory: custom/plugins/${{ github.event.repository.name }}
run: git fetch --unshallow origin

- name: Run bc-check
working-directory: custom/plugins/${{ github.event.repository.name }}
if: github.event_name == 'pull_request' && !contains(github.base_ref, '/feature/')
run: composer bc-check -- --format=github-actions --from="origin/${{ github.base_ref }}"

validate-openapi-typescript:
runs-on: ubuntu-latest
steps:
Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
"require": {
"shopware/core": "~6.5.5@dev"
},
"require-dev": {
"rector/rector": "^0.18.3"
},
"extra": {
"shopware-plugin-class": "Swag\\PayPal\\SwagPayPal",
"copyright": "(c) by shopware AG",
Expand Down Expand Up @@ -69,6 +66,11 @@
"openapi:generate": [
"../../../bin/console swag:paypal:openapi:generate",
"npm run openapi-types --prefix src/Resources/app/administration"
],
"bc-check": [
"php ../../../vendor-bin/roave-backward-compatibility-check/bin/verify-version.php",
"@putenv TMPDIR=./..",
"../../../vendor/bin/roave-backward-compatibility-check"
]
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ parameters:
- tests
excludePaths:
- src/Resources
- src/DevOps/Rector

bootstrapFiles:
- tests/PHPStanBootstrap.php
Expand Down
76 changes: 0 additions & 76 deletions src/DevOps/Rector/ClassCheckoutPackageRector.php

This file was deleted.

Loading