Skip to content

Bump actions/checkout from 2 to 4 #85

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #85

Workflow file for this run

name: Code style
on:
push:
branches:
- master
pull_request:
jobs:
tests:
name: PHP CodeSniffer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
extensions: mbstring
tools: cs2pr
- name: Validate composer.json and composer.lock
run: composer validate
- 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: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: phpcs
run: vendor/bin/phpcs --report=checkstyle -q | cs2pr