From 8b59e38e7bed3e26ea1696bd5b011d66af87f9f2 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Mon, 30 Oct 2023 14:56:29 +0300 Subject: [PATCH] Added support for publisher version 15 --- .github/workflows/phpunit.yml | 11 ++++++++++- composer.json | 4 ++-- phpunit.xml | 12 +++--------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index c64b9225..dbece2a6 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -8,6 +8,14 @@ jobs: laravel: runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [ "8.1", "8.2" ] + publisher: [ "14.0", "15.0" ] + + name: PHP ${{ matrix.php }}, Publisher ${{ matrix.publisher }} + steps: - name: Checkout code uses: actions/checkout@v4 @@ -15,13 +23,14 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: + php-version: ${{ matrix.php }} extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv coverage: xdebug env: COMPOSER_TOKEN: ${{ secrets.COMPOSER_TOKEN }} - name: Install dependencies - run: composer update --prefer-stable --prefer-dist --no-progress --no-interaction + run: composer require laravel-lang/publisher:^${{ matrix.publisher }} - name: Execute tests run: sudo vendor/bin/phpunit --colors=always diff --git a/composer.json b/composer.json index 30d15631..f3256f0a 100644 --- a/composer.json +++ b/composer.json @@ -25,10 +25,10 @@ "require": { "php": "^8.1", "ext-json": "*", - "laravel-lang/publisher": "^14.1" + "laravel-lang/publisher": "^14.1 || ^15.0" }, "require-dev": { - "laravel-lang/status-generator": "^1.19", + "laravel-lang/status-generator": "^1.19 || ^2.0", "phpunit/phpunit": "^10.0", "symfony/var-dumper": "^6.0" }, diff --git a/phpunit.xml b/phpunit.xml index 1e3439c3..6d63c918 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,15 +1,9 @@ @@ -23,12 +17,12 @@ - ./tests + ./tests - ./src + ./src