From 3ba473dd8958ceff67b382e1242eb98b9f9924df Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 5 Feb 2023 16:31:40 +0100 Subject: [PATCH 1/2] Allow Laravel 10 --- .editorconfig | 15 +++++++++++++++ .github/workflows/run-tests.yml | 18 ++++-------------- composer.json | 12 ++++++------ phpunit.xml.dist | 33 +++++++++++---------------------- 4 files changed, 36 insertions(+), 42 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9d49909 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +; This file is for unifying the coding style for different editors and IDEs. +; More information at http://editorconfig.org + +root = true + +[*] +charset = utf-8 +indent_size = 4 +indent_style = space +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false \ No newline at end of file diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1ee0420..9e28e4f 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -19,23 +19,13 @@ jobs: strategy: matrix: - php: [8.2, 8.1, 8.0, 7.4, 7.3] - laravel: [9.*] + php: [8.2, 8.1, 8.0] + laravel: [10.*, 9.*] dependency-version: [prefer-lowest, prefer-stable] exclude: - php: 8.0 - dependency-version: prefer-lowest - - php: 7.4 - laravel: 9.* - - php: 7.3 - laravel: 9.* - include: - - php: 7.2 - laravel: 6.* - - php: 7.3 - laravel: 7.* - - php: 7.4 - laravel: 8.* + laravel: 10.* + steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/composer.json b/composer.json index 7301885..99083a1 100644 --- a/composer.json +++ b/composer.json @@ -10,12 +10,12 @@ } ], "require": { - "php": "^7.2|^8", - "illuminate/support": "^6|^7|^8|^9", - "symfony/form": "^4|^5|^6", - "symfony/validator": "^4|^5|^6", - "symfony/twig-bridge": "^4|^5|^6", - "twig/twig": "^2.13|^3.3.8" + "php": "^8", + "illuminate/support": "^9|^10", + "symfony/form": "^6", + "symfony/validator": "^6", + "symfony/twig-bridge": "^6", + "twig/twig": "^3.3.8" }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a232b16..0162e4f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,24 +1,13 @@ - - - - ./tests/ - - - - - ./src - - + + + + ./src + + + + + ./tests/ + + From 8cae6e5be95ddc4054d3bf83d71a2652eefea3b7 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Sun, 5 Feb 2023 16:40:13 +0100 Subject: [PATCH 2/2] Upgrade testbench --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 99083a1..e12e110 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ }, "require-dev": { "squizlabs/php_codesniffer": "^2.3", - "orchestra/testbench": "^3|^4|^5|^6|^7" + "orchestra/testbench": "^7|^8" }, "scripts": { "test": "phpunit",