From 088c05ba9788c4371c73e3bad3e8ee83f155a134 Mon Sep 17 00:00:00 2001 From: Sergey Zakharevich Date: Fri, 19 Apr 2024 15:03:42 +0300 Subject: [PATCH] Add github action --- .github/workflows/php.yml | 19 ++----------------- composer.json | 2 +- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1ef7894..380b80a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -17,23 +17,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Validate composer.json and composer.lock - run: composer validate --strict - - - name: Cache Composer packages - id: composer-cache - uses: actions/cache@v3 - with: - path: vendor - key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} - restore-keys: | - ${{ runner.os }}-php- - - name: Install dependencies run: composer install --prefer-dist --no-progress - # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" - # Docs: https://getcomposer.org/doc/articles/scripts.md - - # - name: Run test suite - # run: composer run-script test + - name: Code debug + run: composer project.debug diff --git a/composer.json b/composer.json index 61389fc..0322712 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "scripts": { "code.cs-fixer": "php-cs-fixer --diff fix", "code.phpstan": "vendor/bin/phpstan analyse --memory-limit=512M", - "code.fix_and_analyse": [ + "project.debug": [ "@code.cs-fixer", "@code.phpstan" ]