Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Oct 14, 2024
0 parents commit 9fa53ff
Show file tree
Hide file tree
Showing 16 changed files with 1,930 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/coverage.yml
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
16 changes: 16 additions & 0 deletions .github/workflows/tests.yml
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.phpunit.result.cache
composer.lock
composer.phar
phpunit.xml
vendor
28 changes: 28 additions & 0 deletions composer.json
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]"
}
]
}
36 changes: 36 additions & 0 deletions phpunit.xml.dist
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>
Loading

0 comments on commit 9fa53ff

Please sign in to comment.