Skip to content

changed the if condition for checking freemium flag (#280) #335

changed the if condition for checking freemium flag (#280)

changed the if condition for checking freemium flag (#280) #335

Workflow file for this run

name: PHP Lint
on: [ push, pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Get Composer cache directory
id: cache-composer
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Restore Composer cache
uses: actions/cache@v3
with:
path: ${{ steps.cache-composer.outputs.dir }}
key: ${{ runner.os }}-${{ github.ref_name }}-composer-${{ hashFiles('**/composer.lock') }}
- name: Install Composer dependencies
run: |
composer install --no-interaction --prefer-dist
- name: Check for code style violation with PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --diff