Making GH actions happy #52
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: Coding Standards | |
on: pull_request | |
jobs: | |
tests: | |
name: PHPCS | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel previous runs of this workflow (pull requests only) | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.3 | |
coverage: none | |
tools: composer | |
- name: Validate Composer | |
run: composer validate --strict | |
- name: Install dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Run Linter | |
run: composer lint | |
- name: Run PHPCS | |
run: composer phpcs |