Skip to content

chore(ci): reuse style workflow from php-tools #2157

chore(ci): reuse style workflow from php-tools

chore(ci): reuse style workflow from php-tools #2157

Workflow file for this run

name: Lint
on:
push:
branches: [ main ]
pull_request:
jobs:
style:
name: PHP Style Check
uses: GoogleCloudPlatform/php-tools/.github/workflows/code-standards.yml@main
with:
add_rules: |

Check failure on line 14 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Lint

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 14, Col: 18): Invalid input, add_rules is not defined in the referenced workflow.
{
"method_argument_space": {
"keep_multiple_spaces_after_comma": true,
"on_multiline": "ignore"
},
"ordered_imports": false,
"new_with_parentheses": false
}
staticanalysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Get changed files
id: changedFiles
uses: tj-actions/changed-files@v44
- uses: jwalton/gh-find-current-pr@v1
id: findPr
with:
state: open
- name: Run Script
run: |
composer install -d testing/
git fetch --no-tags --prune --depth=5 origin main
bash testing/run_staticanalysis_check.sh
env:
FILES_CHANGED: ${{ steps.changedFiles.outputs.all_changed_files }}
PULL_REQUEST_NUMBER: ${{ steps.findPr.outputs.pr }}