From 99baa6e644d29d5dc71104ee503ce50542e1ad14 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Thu, 28 Mar 2024 00:02:18 +0300 Subject: [PATCH] Small fix --- .github/workflows/code-style.yml | 10 ++++++++-- README.md | 6 ++++-- dev.sh | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 3c7d43b..aafdce5 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -10,6 +10,8 @@ jobs: if: ${{ github.event_name != 'push' || github.ref != 'refs/heads/main' }} + name: Check + steps: - name: Checkout code uses: actions/checkout@v4 @@ -31,6 +33,8 @@ jobs: if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + name: Fix + steps: - name: Checkout code uses: actions/checkout@v4 @@ -41,8 +45,10 @@ jobs: extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json coverage: none - - name: Setup Dependencies + - name: Setup Composer run: | + composer global config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }} + composer global config --no-plugins allow-plugins.dragon-code/codestyler true composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true composer global config --no-plugins allow-plugins.symfony/thanks true @@ -51,7 +57,7 @@ jobs: composer config --no-plugins allow-plugins.ergebnis/composer-normalize true composer config --no-plugins allow-plugins.symfony/thanks true - - name: Install dependency + - name: Install dependencies run: | composer global require dragon-code/codestyler composer global require ergebnis/composer-normalize diff --git a/README.md b/README.md index fc02a45..6632659 100644 --- a/README.md +++ b/README.md @@ -208,8 +208,10 @@ jobs: extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json coverage: none - - name: Setup Dependencies + - name: Setup Composer run: | + composer global config github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }} + composer global config --no-plugins allow-plugins.dragon-code/codestyler true composer global config --no-plugins allow-plugins.ergebnis/composer-normalize true composer global config --no-plugins allow-plugins.symfony/thanks true @@ -218,7 +220,7 @@ jobs: composer config --no-plugins allow-plugins.ergebnis/composer-normalize true composer config --no-plugins allow-plugins.symfony/thanks true - - name: Install dependency + - name: Install dependencies run: | composer global require dragon-code/codestyler composer global require ergebnis/composer-normalize diff --git a/dev.sh b/dev.sh index 0452fe1..39f7358 100644 --- a/dev.sh +++ b/dev.sh @@ -1,3 +1,3 @@ #!/bin/sh -l -act -W '.github/workflows/code-style-dev.yml' +act -W '.github/workflows/code-style.yml'