Skip to content

Commit

Permalink
Merge pull request #12 from laravel-shift/l11-compatibility
Browse files Browse the repository at this point in the history
Laravel 11.x Compatibility
  • Loading branch information
stijnvanouplines committed Mar 12, 2024
2 parents f8b0b99 + 9b484aa commit 0b7a6be
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 27 deletions.
48 changes: 26 additions & 22 deletions .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
14 changes: 9 additions & 5 deletions 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": {
Expand Down

0 comments on commit 0b7a6be

Please sign in to comment.