diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4217753..297d8fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,9 +27,20 @@ jobs: - 'prefer-stable' exclude: + - laravel: '11.*' + php: '8.2' + - laravel: '11.*' + php: '8.1' + - laravel: '11.*' + php: '8.0' - laravel: '10.*' php: '8.0' + + include: + - laravel: '11.*' + php: '8.3' + testbench: '9.*' - laravel: '10.*' php: '8.3' testbench: '8.*' @@ -69,7 +80,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -79,9 +90,17 @@ jobs: coverage: none - name: Install dependencies + if: matrix.laravel != '11.*' || matrix.php != '8.3' run: | composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction + + - name: Install dependencies + if: matrix.laravel == '11.*' && matrix.php == '8.3' + run: | + composer require "laravel/framework:11.*" "orchestra/testbench:9.*" --no-interaction --no-update --dev + composer update --prefer-stable --prefer-dist --no-interaction + - name: Execute tests run: vendor/bin/phpunit diff --git a/.gitignore b/.gitignore index 59290b6..4077fee 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ vendor coverage .idea .phpunit.result.cache +.phpunit.cache \ No newline at end of file diff --git a/README.md b/README.md index 9601b6e..c1c7ada 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ php artisan migrate You can publish the config-file with: ```bash -php artisan vendor:publish --provider=BeyondCode\Vouchers\VouchersServiceProvider --tag="config" +php artisan vendor:publish --provider="BeyondCode\Vouchers\VouchersServiceProvider" --tag="config" ``` -This is the contents of the published config file: +This is the content of the published config file: ```php + + + + tests + + + + + + src + + +