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 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": {