Do not use superglobals #50
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: "XML" | |
on: # yamllint disable-line rule:truthy | |
pull_request: null | |
push: | |
branches: | |
- "master" | |
jobs: | |
phpcs-validate: | |
name: "Validate PHPCS ruleset" | |
runs-on: "ubuntu-22.04" | |
steps: | |
- | |
name: "Check out repository" | |
uses: "actions/checkout@v3" | |
- | |
name: "Set up PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
php-version: "8.0" | |
- | |
name: "Install dependencies" | |
uses: "ramsey/composer-install@v2" | |
with: | |
dependency-versions: "highest" | |
composer-options: "--no-plugins --no-scripts" | |
- | |
name: "Validate ruleset" | |
uses: "szepeviktor/phpcs-ruleset-validator@v0.4.0" | |
with: | |
xml_ruleset: "PSR12NeutronRuleset/ruleset.xml" |