Make the connection to OpenMage can use a port other than 80 or 443 #26
Workflow file for this run
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
name: 'Linting PHP' | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.php' | |
- '**.phtml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.php' | |
- '**.phtml' | |
# Allow manually triggering the workflow. | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php: ['8.2', '8.3'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
coverage: none | |
- name: Linting PHP files | |
run: '! find . -type f -name "*.php" -exec php -d display_errors=1 -d error_reporting=-1 -l {} \; 2>&1 | grep -v ^"No syntax errors"' | |
- name: Linting PHTML files | |
run: '! find ./magento/app/design -type f -name "*.phtml" -exec php -d display_errors=1 -d error_reporting=-1 -l {} \; 2>&1 | grep -v ^"No syntax errors"' |