-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9fa53ff
Showing
16 changed files
with
1,930 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: coverage | ||
on: [push] | ||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
tarantool: ["2.11", "3.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: docker run -d -p 3301:3301 tarantool/tarantool:${{ matrix.tarantool }} | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
extensions: xdebug | ||
tools: phpunit, composer:v2 | ||
- run: composer install | ||
- run: vendor/bin/phpunit tests | ||
- run: cat ./coverage.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: tests | ||
on: [push] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ["8.1", "8.2", "8.3"] | ||
tarantool: ["2.11", "3.2"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: php-actions/composer@v6 | ||
with: | ||
php_version: ${{ matrix.php }} | ||
- run: docker run -d -p 3301:3301 tarantool/tarantool:${{ matrix.tarantool }} | ||
- run: vendor/bin/phpunit tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.phpunit.result.cache | ||
composer.lock | ||
composer.phar | ||
phpunit.xml | ||
vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "tarantool/temporal", | ||
"description": "Temporal api for Tarantool mapper.", | ||
"keywords": ["tarantool", "client", "pure", "nosql", "mapper", "temporal"], | ||
"type": "library", | ||
"license": "MIT", | ||
"require": { | ||
"nesbot/carbon": "^3.8", | ||
"php": ">=8.0", | ||
"tarantool/mapper": ">=6.0.0" | ||
}, | ||
"require-dev": { | ||
"monolog/monolog": "^2.9.3", | ||
"phpunit/phpunit": "^9.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Tarantool\\Temporal\\": "src/", | ||
"Tarantool\\Temporal\\Tests\\": "tests/" | ||
} | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Dmitry Krokhin", | ||
"email": "[email protected]" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="./vendor/autoload.php" | ||
cacheResult="false" | ||
colors="false" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
stopOnFailure="false" | ||
verbose="true"> | ||
<coverage> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
<report> | ||
<clover outputFile="coverage.clover"/> | ||
<text outputFile="coverage.txt"/> | ||
</report> | ||
</coverage> | ||
<php> | ||
<ini name="date.timezone" value="UTC" /> | ||
<ini name="display_errors" value="On" /> | ||
<ini name="display_startup_errors" value="On" /> | ||
<ini name="error_reporting" value="E_ALL" /> | ||
<env name="TARANTOOL_HOST" value="127.0.0.1" /> | ||
<env name="TARANTOOL_PORT" value="3301" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="Tests"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
Oops, something went wrong.