mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 09:24:02 +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:
parent
46c590e240
commit
0b108903b5
4 changed files with 38 additions and 43 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
58
phpunit.xml
58
phpunit.xml
|
|
@ -1,35 +1,27 @@
|
||||||
<?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>
|
<php>
|
||||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
<env name="APP_ENV" value="testing"/>
|
||||||
<directory suffix=".php">./src</directory>
|
<env name="BCRYPT_ROUNDS" value="4"/>
|
||||||
<exclude>
|
<env name="CACHE_DRIVER" value="redis"/>
|
||||||
<file>./src/routes.php</file>
|
<env name="MAIL_DRIVER" value="array"/>
|
||||||
</exclude>
|
<env name="QUEUE_CONNECTION" value="sync"/>
|
||||||
</whitelist>
|
<env name="SESSION_DRIVER" value="array"/>
|
||||||
</filter>
|
<env name="DB_CONNECTION" value="sqlite"/>
|
||||||
<php>
|
<env name="DB_DATABASE" value=":memory:"/>
|
||||||
<env name="APP_ENV" value="testing"/>
|
<env name="AWS_DEFAULT_REGION" value="us-west-2"/>
|
||||||
<env name="BCRYPT_ROUNDS" value="4"/>
|
</php>
|
||||||
<env name="CACHE_DRIVER" value="redis"/>
|
|
||||||
<env name="MAIL_DRIVER" value="array"/>
|
|
||||||
<env name="QUEUE_CONNECTION" value="sync"/>
|
|
||||||
<env name="SESSION_DRIVER" value="array"/>
|
|
||||||
<env name="DB_CONNECTION" value="sqlite"/>
|
|
||||||
<env name="DB_DATABASE" value=":memory:"/>
|
|
||||||
<env name="AWS_DEFAULT_REGION" value="us-west-2"/>
|
|
||||||
</php>
|
|
||||||
</phpunit>
|
</phpunit>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue