From dac61f66c69d13b1f91f1423f64b26bd8ee08afd Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 20:52:25 +0000 Subject: [PATCH 1/2] Bump dependencies for Laravel 11 --- composer.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index db4d8d7..89701f3 100644 --- a/composer.json +++ b/composer.json @@ -1,18 +1,22 @@ { "name": "stijnvanouplines/blade-country-flags", "description": "A package to easily make use of country flags in your Laravel Blade views.", - "keywords": ["Blade", "Country flags", "Laravel"], + "keywords": [ + "Blade", + "Country flags", + "Laravel" + ], "homepage": "https://github.com/stijnvanouplines/blade-country-flags", "license": "MIT", "require": { "php": "^7.4|^8.0", "blade-ui-kit/blade-icons": "^1.0", - "illuminate/support": "^8.0|^9.0|^10.0" + "illuminate/support": "^8.0|^9.0|^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^6.18|^8.0", - "pestphp/pest": "^1.4", - "spatie/pest-plugin-snapshots": "^1.0" + "orchestra/testbench": "^6.18|^8.0|^9.0", + "pestphp/pest": "^1.4|^2.34", + "spatie/pest-plugin-snapshots": "^1.0|^2.1" }, "autoload": { "psr-4": { From 9b484aacbe0c7349810e0a08beccc88674049c66 Mon Sep 17 00:00:00 2001 From: Shift Date: Tue, 27 Feb 2024 20:52:25 +0000 Subject: [PATCH 2/2] Update GitHub Actions for Laravel 11 --- .github/workflows/tests.yml | 48 ++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7cb7ccd..969899a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,36 +1,40 @@ name: Tests -on: ['push', 'pull_request'] +on: + - push + - pull_request jobs: ci: runs-on: ${{ matrix.os }} + strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - php: ['7.4', '8.0', '8.1'] + php: ['7.4', '8.0', '8.1', '8.2'] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php }} - extensions: fileinfo - tools: composer - coverage: none - - - name: Setup Problem Matches - run: | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Install PHP dependencies - run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi - - - name: Unit Tests - run: vendor/bin/pest --colors=always + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: fileinfo + tools: composer + coverage: none + + - name: Setup Problem Matches + run: | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + + - name: Install PHP dependencies + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi + + - name: Unit Tests + run: vendor/bin/pest --colors=always