diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 9ee9f6b..0428dd3 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -1,4 +1,4 @@ -name: PHP_CodeSniffer +name: PHPCS (Default) on: pull_request @@ -7,12 +7,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v3 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.0' + php-version: '8.2' coverage: none tools: composer, cs2pr @@ -28,7 +28,9 @@ jobs: ${{ runner.os }}-composer- - name: Install dependencies - run: composer install --no-interaction --no-scripts + run: | + composer config github-oauth.github.com ${{ secrets.AMIABOT_BOT_TOKEN }} + composer install --prefer-dist --no-progress - name: Detect coding standard violations run: vendor/bin/phpcs -q --report=checkstyle . | cs2pr --notices-as-warnings