Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Integrate CS check #3

Closed
tarampampam opened this issue May 22, 2020 · 0 comments
Closed

Integrate CS check #3

tarampampam opened this issue May 22, 2020 · 0 comments
Assignees

Comments

@tarampampam
Copy link
Collaborator

This action requires: minimal PHP version 7.2

Fast diff (just invert changes):

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 65d06af..116de2a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -76,38 +76,3 @@ jobs: # Docs: <https://help.github.com/en/articles/workflow-syntax-for-github-ac
           token: ${{ secrets.CODECOV_TOKEN }}
           file: ./coverage/clover.xml
           fail_ci_if_error: false
-
-  cs-check:
-    name: Check Code Style
-    runs-on: ubuntu-latest
-    steps:
-      - name: Check out code
-        uses: actions/checkout@v2
-        with:
-          fetch-depth: 1
-
-      - name: Setup PHP, with composer and extensions
-        uses: shivammathur/setup-php@master
-        with:
-          php-version: 7.4
-          extensions: mbstring
-
-      - 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@v1
-        with:
-          path: ${{ steps.composer-cache.outputs.dir }}
-          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
-          restore-keys: ${{ runner.os }}-composer-
-
-      - name: Install Composer 'hirak/prestissimo' package
-        run: composer global require hirak/prestissimo --update-no-dev
-
-      - name: Install Composer dependencies
-        run: composer update --prefer-dist --no-interaction --no-suggest
-
-      - name: Execute check
-        run: composer cs-check
diff --git a/composer.json b/composer.json
index 5ba5634..961fa14 100644
--- a/composer.json
+++ b/composer.json
@@ -32,8 +32,7 @@
         "laravel/laravel": "^5.5 || ~6.0 || ~7.0",
         "mockery/mockery": "^1.3",
         "phpstan/phpstan": "~0.12",
-        "phpunit/phpunit": "^6.4 || ~7.5",
-        "spiral/code-style": "^1.0"
+        "phpunit/phpunit": "^6.4 || ~7.5"
     },
     "autoload": {
         "psr-4": {
@@ -52,8 +51,6 @@
         "phpunit": "@php ./vendor/bin/phpunit --no-coverage --colors=always",
         "phpunit-cover": "@php ./vendor/bin/phpunit",
         "phpstan": "@php ./vendor/bin/phpstan analyze -c ./phpstan.neon.dist --no-progress --ansi",
-        "cs-check": "@php ./vendor/bin/spiral-cs check ./bin ./src ./tests --ansi",
-        "cs-fix": "@php ./vendor/bin/spiral-cs fix ./bin ./src ./tests --ansi",
         "test": [
             "@phpstan",
             "@phpunit"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant