-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
8,346 changed files
with
47,096 additions
and
42,156 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,4 +1,9 @@ | ||
includes: | ||
- phpstan.neon | ||
parameters: | ||
level: 3 | ||
paths: | ||
- %currentWorkingDirectory%/app/code/core/Mage | ||
- %currentWorkingDirectory%/lib/Mage | ||
- %currentWorkingDirectory%/lib/Magento | ||
- %currentWorkingDirectory%/lib/Varien | ||
level: 4 |
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,54 @@ | ||
name: "PHPStan Static Code Analyses" | ||
|
||
on: | ||
# Run on all pushes and on all pull requests. | ||
# Prevent the build from running when there are only irrelevant changes. | ||
push: | ||
paths: | ||
- '**.php' | ||
pull_request: | ||
paths: | ||
- '**.php' | ||
# Allow manually triggering the workflow. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
php_stan: | ||
runs-on: [ubuntu-latest] | ||
|
||
strategy: | ||
matrix: | ||
config_files: [ | ||
'.github/phpstan.neon', | ||
'.github/phpstan_experimental_level.neon' | ||
] | ||
|
||
name: PHP Stan ${{ matrix.config_files }} | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Validate composer | ||
run: composer validate --strict | ||
|
||
- name: Get composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-* | ||
|
||
- name: ensure existance of ./app/code/local | ||
run: mkdir -p app/code/local | ||
|
||
- name: PHPStan Static Analysis | ||
run: php vendor/bin/phpstan.phar analyze -c ${{ matrix.config_files }} | ||
continue-on-error: ${{ matrix.config_files == '.github/phpstan_experimental_level.neon' }} |
26 changes: 22 additions & 4 deletions
26
.github/workflows/unit-tests.yml → .github/workflows/phpunit.yml
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,27 @@ | ||
name: "PHP Security Check" | ||
|
||
on: | ||
# Run automatically every Monday on midnight. | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
# Run on pull requests only when composer.lock has changed. | ||
pull_request: | ||
paths: | ||
- 'composer.lock' | ||
# Allow manually triggering the workflow. | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check: | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v2 | ||
id: cache-db | ||
with: | ||
path: ~/.symfony/cache | ||
key: db | ||
|
||
- uses: symfonycorp/security-checker-action@v4 |
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.
Oops, something went wrong.