Sylius 1.11 #1
Workflow file for this run
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: "Coding Standards" | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: ~ | |
release: | |
types: [created] | |
workflow_dispatch: ~ | |
jobs: | |
coding-standards: | |
runs-on: ubuntu-20.04 | |
name: Coding Standards | |
steps: | |
- | |
uses: actions/checkout@v3 | |
- | |
name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: "8.1" | |
extensions: intl | |
tools: composer:v2,flex | |
coverage: none | |
- | |
name: Get Composer cache directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- | |
name: Cache Composer | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- | |
name: Install PHP dependencies | |
run: composer update --no-interaction | |
env: | |
SYMFONY_REQUIRE: "5.4.*" | |
- | |
name: Check coding standards | |
run: vendor/bin/ecs check |