From dfe6954acfe64503eba749cd2f54bb76c52d4aba Mon Sep 17 00:00:00 2001 From: Timotei Date: Tue, 17 Sep 2024 12:03:23 +0300 Subject: [PATCH] Review changes --- .github/workflows/ci.yml | 10 ++-------- .prettierrc | 12 +++--------- composer.json | 2 +- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b38bd4b03..6e5476629 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,26 +8,20 @@ on: - 'v*.*' pull_request: -# Cancels all previous workflow runs for pull requests that have not completed. -# concurrency: -# group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} -# cancel-in-progress: true - jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - # Initialize Cache Composer - name: Cache Composer dependencies uses: actions/cache@v3 with: path: .cache key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - # Initialize Node.js - - uses: actions/setup-node@v3 + - name: Initialize Node.js + uses: actions/setup-node@v3 with: node-version: '22' check-latest: true diff --git a/.prettierrc b/.prettierrc index 369199fce..35955524a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,20 +2,14 @@ "overrides": [ { "files": ".prettierrc", - "options": { - "parser": "json" - } + "options": { "parser": "json" } }, { "files": "**/*.{yml,yaml}", - "options": { - "tabWidth": 2 - } + "options": { "tabWidth": 2 } } ], - "plugins": [ - "@prettier/plugin-php" - ], + "plugins": ["@prettier/plugin-php"], "arrowParens": "avoid", "braceStyle": "per-cs", "endOfLine": "auto", diff --git a/composer.json b/composer.json index 79acec1ff..8f75b48be 100644 --- a/composer.json +++ b/composer.json @@ -8,6 +8,6 @@ "scripts": { "post-install-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", "post-update-cmd": "phpcs --config-set installed_paths vendor/phpcompatibility/php-compatibility", - "sniff-check": "phpcs --standard=./phpcs.xml.dist" + "sniff-check": "phpcs" } } \ No newline at end of file