Skip to content
Merged
48 changes: 0 additions & 48 deletions .circleci/config.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: unit-test.yml
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
unit-test:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
php: [ '8.0', '8.1', '8.2', '8.3', '8.4' ]

runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{matrix.php}}
coverage: xdebug
tools: composer, phpunit
- run: composer install -n --prefer-dist
- run: php vendor/phpunit/phpunit/phpunit -c phpunit.xml --coverage-clover=coverage.xml
- run: php vendor/bin/coverage-check coverage.xml 70
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"ext-xdebug": "*"
},
"require-dev": {
"phpunit/phpunit": "9.5.*"
"phpunit/phpunit": "^9",
"rregeer/phpunit-coverage-check": "^0.3.1"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 4 additions & 1 deletion tests/CubexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ public function testFromContext()
public function testDir()
{
$cubex = $this->_cubex();
self::assertEquals(__DIR__ . '/.cubex/', Cubex::dir($cubex->getContext()));
self::assertEquals(
__DIR__ . DIRECTORY_SEPARATOR . '.cubex' . DIRECTORY_SEPARATOR,
Cubex::dir($cubex->getContext())
);
}
}