From 6ca7b347d2793d9b232af4a96c0e8912a0d4b420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20Emre=20Delig=C3=B6z?= Date: Wed, 23 Aug 2023 01:07:30 +0300 Subject: [PATCH] Refactor CI/CD workflows to use phonyland configuration Removed custom configurations of the GitHub actions workflows for better maintainability. We replaced the "test" job with the "phony_workflows" job that uses a predefined workflow from the phonyland development tools. This change makes it significantly easier to update and maintain compliance with best practices for software testing. It also increases the PHPStan analysis level for a more detailed review of potential code issues. --- .github/workflows/pest.yml | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pest.yml b/.github/workflows/pest.yml index 16cc979..9b80855 100644 --- a/.github/workflows/pest.yml +++ b/.github/workflows/pest.yml @@ -7,30 +7,5 @@ on: branches: [main, master] jobs: - test: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo - coverage: pcov - - - name: Setup problem matchers - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - - name: Install composer dependencies - uses: ramsey/composer-install@v2 - - - name: List Installed Dependencies - run: composer show -D - - - name: Execute tests - run: vendor/bin/pest --coverage --colors=always --order-by=random + phony_workflows: + uses: phonyland/dev-tools/.github/workflows/pest.yml@master