mirror of
https://github.com/archtechx/virtualcolumn.git
synced 2025-12-12 08:04: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:
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]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
laravel: [6, 8, 9]
|
||||
|
||||
include:
|
||||
- laravel: 9
|
||||
php: 8.0
|
||||
- laravel: 10
|
||||
php: 8.1
|
||||
|
||||
name: Tests (PHPUnit) - L${{ matrix.laravel }}
|
||||
|
||||
|
|
@ -20,7 +23,7 @@ jobs:
|
|||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '8.0'
|
||||
php-version: ${{matrix.php}}
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer require "laravel/framework:^${{matrix.laravel}}.0"
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Installation
|
||||
|
||||
Supports Laravel 6, 7, 8, and 9.
|
||||
Supports Laravel 9 and 10.
|
||||
|
||||
```
|
||||
composer require stancl/virtualcolumn
|
||||
|
|
|
|||
|
|
@ -19,11 +19,11 @@
|
|||
}
|
||||
},
|
||||
"require": {
|
||||
"illuminate/support": "^6.0|^8.0|^9.0",
|
||||
"illuminate/database": "^6.0|^8.0|^9.0"
|
||||
"illuminate/support": "^9.0|^10.0",
|
||||
"illuminate/database": "^9.0|^10.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"orchestra/testbench": "^4.0|^6.0|^7.0"
|
||||
"orchestra/testbench": "^7.0|^8.0"
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
|
|
|
|||
26
phpunit.xml
26
phpunit.xml
|
|
@ -1,26 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit backupGlobals="false"
|
||||
backupStaticAttributes="false"
|
||||
bootstrap="vendor/autoload.php"
|
||||
colors="true"
|
||||
convertErrorsToExceptions="true"
|
||||
convertNoticesToExceptions="true"
|
||||
convertWarningsToExceptions="true"
|
||||
processIsolation="false"
|
||||
stopOnFailure="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">
|
||||
<coverage>
|
||||
<include>
|
||||
<directory suffix=".php">./src</directory>
|
||||
</include>
|
||||
<exclude>
|
||||
<file>./src/routes.php</file>
|
||||
</exclude>
|
||||
</coverage>
|
||||
<testsuites>
|
||||
<testsuite name="Unit">
|
||||
<directory suffix="Test.php">./tests</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">./src</directory>
|
||||
<exclude>
|
||||
<file>./src/routes.php</file>
|
||||
</exclude>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<php>
|
||||
<env name="APP_ENV" value="testing"/>
|
||||
<env name="BCRYPT_ROUNDS" value="4"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue