Update and rename phpCodeSnipper.yml to php.yml #23
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
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- test-lint | |
pull_request: | |
branches: | |
- test-lint | |
name : 'Code Lint Global' | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "7.4" | |
coverage: none | |
tools: phpcs | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install Python dependencies | |
run: pip install flake8 | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
php_codesniffer: true | |
# Optional: Ignore warnings | |
php_codesniffer_args: "-n --ignore-annotations ./core ./desktop ./plugin_info" | |
flake8: true |