1
0
Fork 0
mirror of https://github.com/archtechx/virtualcolumn.git synced 2025-12-12 15:34:04 +00:00

Add L10 support, remove L6 and L8 support (#11)

* Add L10 support

* Update PHP version in ci.yml

* Update ci.yml

* Revert ci.yml changes

* Migrate PHPUnit XML config using "--migrate-configuration"

* Update phpunit.xml (delete cacheDirectory, use backupStaticAttributes instead of backupStaticProperties)

* Delete backupStaticAttributes

* Add PHP version matrix

* Use ci.yml from #12

* Correct Laravel matrix versions

* Revert ci.yml changes

* Use multiple PHP versions

* Update ci.yml

* Don't use PHP 8 with Laravel 10 in CI

* Update ci.yml

* Remove L6 and L8 support

* Use single PHP version in CI

* Update ci.yml

* Change matrix in ci.yml

* swap laravel 9 & 10

* Update README.md

---------

Co-authored-by: Samuel Štancl <samuel@archte.ch>
This commit is contained in:
lukinovec 2023-02-16 11:34:42 +01:00 committed by GitHub
parent 46c590e240
commit 0b108903b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 43 deletions

View file

@ -3,13 +3,16 @@ name: run-tests
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
test: tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: true fail-fast: true
matrix: matrix:
laravel: [6, 8, 9] include:
- laravel: 9
php: 8.0
- laravel: 10
php: 8.1
name: Tests (PHPUnit) - L${{ matrix.laravel }} name: Tests (PHPUnit) - L${{ matrix.laravel }}
@ -20,7 +23,7 @@ jobs:
- name: Setup PHP - name: Setup PHP
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: '8.0' php-version: ${{matrix.php}}
- name: Install dependencies - name: Install dependencies
run: composer require "laravel/framework:^${{matrix.laravel}}.0" run: composer require "laravel/framework:^${{matrix.laravel}}.0"

View file

@ -2,7 +2,7 @@
## Installation ## Installation
Supports Laravel 6, 7, 8, and 9. Supports Laravel 9 and 10.
``` ```
composer require stancl/virtualcolumn composer require stancl/virtualcolumn

View file

@ -19,11 +19,11 @@
} }
}, },
"require": { "require": {
"illuminate/support": "^6.0|^8.0|^9.0", "illuminate/support": "^9.0|^10.0",
"illuminate/database": "^6.0|^8.0|^9.0" "illuminate/database": "^9.0|^10.0"
}, },
"require-dev": { "require-dev": {
"orchestra/testbench": "^4.0|^6.0|^7.0" "orchestra/testbench": "^7.0|^8.0"
}, },
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true "prefer-stable": true

View file

@ -1,26 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd">
backupStaticAttributes="false" <coverage>
bootstrap="vendor/autoload.php" <include>
colors="true" <directory suffix=".php">./src</directory>
convertErrorsToExceptions="true" </include>
convertNoticesToExceptions="true" <exclude>
convertWarningsToExceptions="true" <file>./src/routes.php</file>
processIsolation="false" </exclude>
stopOnFailure="false"> </coverage>
<testsuites> <testsuites>
<testsuite name="Unit"> <testsuite name="Unit">
<directory suffix="Test.php">./tests</directory> <directory suffix="Test.php">./tests</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
<exclude>
<file>./src/routes.php</file>
</exclude>
</whitelist>
</filter>
<php> <php>
<env name="APP_ENV" value="testing"/> <env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/> <env name="BCRYPT_ROUNDS" value="4"/>