Update README.md #38
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: Check code | |
on: | |
push: | |
branches: | |
- 'develop' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Cache Composer dependencies | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/composer-cache | |
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} | |
- name: Install PHP dependencies through Composer | |
uses: php-actions/composer@v6 | |
with: | |
version: 2 | |
php_version: 7.4 | |
args: --ignore-platform-reqs | |
- name: Check code using PHP_CodeSniffer | |
run: composer check-code |