Skip to content

feat: [sc-11097] [On Demand Revalidation] make tags work the same way as paths #49

feat: [sc-11097] [On Demand Revalidation] make tags work the same way as paths

feat: [sc-11097] [On Demand Revalidation] make tags work the same way as paths #49

name: WordPress Coding Standards
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run:
runs-on: ubuntu-latest
name: Check code
strategy:
matrix:
php: [ 8.0.15 ]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
tools: composer
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: php-${{ matrix.php }}-${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: php-${{ matrix.php }}-${{ runner.os }}-composer
- name: Install dependencies
run: |
composer update
- name: Run PHP_CodeSniffer
run: composer run-script phpcs