From 214e06c85e06855335f0cc45a43f1e541ce31981 Mon Sep 17 00:00:00 2001 From: yburlakov Date: Wed, 6 May 2026 10:49:16 +0300 Subject: [PATCH 1/4] chore: action --- .github/actions/php-laravel-setup/action.yml | 34 --------- .github/workflows/run-tests-with-coverage.yml | 69 +------------------ 2 files changed, 3 insertions(+), 100 deletions(-) delete mode 100644 .github/actions/php-laravel-setup/action.yml diff --git a/.github/actions/php-laravel-setup/action.yml b/.github/actions/php-laravel-setup/action.yml deleted file mode 100644 index 1a4b366..0000000 --- a/.github/actions/php-laravel-setup/action.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PHP Laravel setup -description: Setup PHP and install dependencies for selected Laravel versions - -inputs: - php-version: - description: PHP version for the job - required: true - laravel-version: - description: Laravel framework version constraint - required: true - coverage: - description: Coverage driver passed to setup-php - required: false - default: none - -runs: - using: composite - steps: - - name: Set up PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ inputs.php-version }} - coverage: ${{ inputs.coverage }} - tools: composer - - - name: Install Laravel version - shell: bash - env: - LARAVEL_VERSION: ${{ inputs.laravel-version }} - run: composer require "laravel/framework:$LARAVEL_VERSION" -q --no-update - - - name: Install dependencies - shell: bash - run: composer update -W -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist diff --git a/.github/workflows/run-tests-with-coverage.yml b/.github/workflows/run-tests-with-coverage.yml index a4a4390..2bc9c1c 100644 --- a/.github/workflows/run-tests-with-coverage.yml +++ b/.github/workflows/run-tests-with-coverage.yml @@ -6,70 +6,7 @@ on: pull_request: branches: [ "master" ] -env: - FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" - PHP_LATEST: &php-latest "8.5" - LARAVEL_LATEST: &laravel-latest "13.*" - jobs: - tests: - runs-on: ubuntu-latest - strategy: - matrix: - php-version: [ "8.4", "8.5" ] - laravel-version: [ "12.*", "13.*" ] - exclude: - - php-version: *php-latest - laravel-version: *laravel-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - - name: Setup - uses: ./.github/actions/php-laravel-setup - with: - php-version: ${{ matrix.php-version }} - laravel-version: ${{ matrix.laravel-version }} - coverage: none - - name: Execute unit tests via PHPUnit - run: vendor/bin/phpunit - - tests-with-coverage: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - - name: Setup - uses: ./.github/actions/php-laravel-setup - with: - php-version: *php-latest - laravel-version: *laravel-latest - coverage: xdebug - - name: Format code style via Pint - run: vendor/bin/pint --test - - name: Execute unit tests via PHPUnit with coverage - run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml - - name: Export coverage report - uses: actions/upload-artifact@v7 - with: - name: clover.xml - path: build/logs - - upload-to-coveralls: - needs: tests-with-coverage - runs-on: ubuntu-latest - steps: - - name: Set up PHP - uses: shivammathur/setup-php@v2 - - name: Checkout - uses: actions/checkout@v6 - - name: Import coverage report - uses: actions/download-artifact@v7 - with: - name: clover.xml - path: build/logs - - name: Upload coverage results to Coveralls - env: - COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - composer global require php-coveralls/php-coveralls - php-coveralls --coverage_clover=build/logs/clover.xml -v --json_path=coveralls-upload.json + run-tests: + uses: ronasit/github-actions/.github/workflows/tests.yml@main + secrets: inherit From f6869916f359af980bcceaebb96f0d07ddb415b3 Mon Sep 17 00:00:00 2001 From: yburlakov Date: Wed, 6 May 2026 11:00:16 +0300 Subject: [PATCH 2/4] chore: action --- .github/workflows/run-tests-with-coverage.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/run-tests-with-coverage.yml b/.github/workflows/run-tests-with-coverage.yml index 2bc9c1c..3572e29 100644 --- a/.github/workflows/run-tests-with-coverage.yml +++ b/.github/workflows/run-tests-with-coverage.yml @@ -9,4 +9,3 @@ on: jobs: run-tests: uses: ronasit/github-actions/.github/workflows/tests.yml@main - secrets: inherit From 6a6947f56a5f45484cf5befacce458274c3638c4 Mon Sep 17 00:00:00 2001 From: yburlakov Date: Wed, 6 May 2026 11:48:51 +0300 Subject: [PATCH 3/4] chore: workflow --- .github/workflows/{run-tests-with-coverage.yml => tests.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{run-tests-with-coverage.yml => tests.yml} (100%) diff --git a/.github/workflows/run-tests-with-coverage.yml b/.github/workflows/tests.yml similarity index 100% rename from .github/workflows/run-tests-with-coverage.yml rename to .github/workflows/tests.yml From b8f6035066d0e8561c4467eea2525355632892bf Mon Sep 17 00:00:00 2001 From: yburlakov Date: Wed, 6 May 2026 11:49:57 +0300 Subject: [PATCH 4/4] chore: workflow --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3572e29..a16e380 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Run tests +name: Tests on: push: