Fix issue where unwrapped migration code was being validated (and fai… #94
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: Code Quality | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
codeQuality: | |
runs-on: ubuntu-latest | |
name: PHP | |
steps: | |
- name: Cancel previous incomplete runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout changes | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install PHP and PHP Code Sniffer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_sqlite, sqlite3, xml, zip | |
tools: phpcs | |
- name: Run code quality checks (on push) | |
if: github.event_name == 'push' | |
run: ./.github/workflows/utilities/phpcs-push ${{ github.sha }} | |
- name: Run code quality checks (on pull request) | |
if: github.event_name == 'pull_request' | |
run: ./.github/workflows/utilities/phpcs-pr ${{ github.base_ref }} |