Issue/161 - Edit: refresh "Site Assignment" metabox contents. #114
This file contains hidden or 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: PHP - Code Sniffer | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - release/* | |
| pull_request: | |
| jobs: | |
| sniff-php: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '7.4' | |
| coverage: none | |
| tools: composer | |
| - name: Get Composer cache directory | |
| id: composer-cache | |
| run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
| - name: Setup Composer cache | |
| uses: pat-s/always-upload-cache@v2.1.3 | |
| with: | |
| path: ${{ steps.composer-cache.outputs.dir }} | |
| key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-composer- | |
| ${{ runner.os }}- | |
| - name: Validate composer.json | |
| run: composer --no-interaction validate --no-check-all | |
| - name: Install dependencies | |
| run: composer install --prefer-dist --no-suggest --no-progress --no-interaction | |
| - name: Detect coding standard violations (PHPCS) | |
| run: composer run phpcs |