From 474b39a49aa39c6f2a46f9144a43d38321e0ee62 Mon Sep 17 00:00:00 2001 From: ADmad Date: Tue, 17 Sep 2024 17:56:56 +0530 Subject: [PATCH] Update CI config --- .github/workflows/ci.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2037af0..44c76d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,36 +2,14 @@ name: CI on: [push, pull_request] +permissions: + contents: read + jobs: testsuite: uses: cakephp/.github/.github/workflows/testsuite-without-db.yml@5.x secrets: inherit cs-stan: - name: Coding Standard & Static Analysis - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v4 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: '8.3' - extensions: mbstring, intl - coverage: none - tools: vimeo/psalm:5, phpstan:1.12, cs2pr - - - name: Composer Install - run: composer require --dev cakephp/cakephp-codesniffer:^5.0 - - - name: Run phpcs - run: vendor/bin/phpcs --report=checkstyle --standard=vendor/cakephp/cakephp-codesniffer/CakePHP src/ tests/ | cs2pr - - - name: Run psalm - if: always() - run: psalm --output-format=github - - - name: Run phpstan - if: always() - run: phpstan analyse --error-format=github + uses: ADmad/.github/.github/workflows/cs-stan.yml@master + secrets: inherit