diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..84edf90 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: [push] + +jobs: + build-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: php-actions/composer@v6 # or alternative dependency management + - uses: php-actions/phpunit@v3 + # ... then your own project steps ... + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..45196d2 --- /dev/null +++ b/composer.json @@ -0,0 +1,22 @@ +{ + "name": "ms609/timescale", + "description": "Test geological timescale", + + "require-dev": { + "ext-curl": "*", + "ext-dom": "*", + "ext-json": "*", + "ext-sqlite3": "*", + "phpunit/phpunit": "9.*" + }, + "autoload": { + "psr-4": { + "App\\": "." + } + }, + "autoload-dev": { + "psr-4": { + "App\\Test\\": "test" + } + } +} diff --git a/test/phpunit.xml b/test/phpunit.xml new file mode 100644 index 0000000..ff2e2a2 --- /dev/null +++ b/test/phpunit.xml @@ -0,0 +1,18 @@ + + + + + ../../src + + + + + + + + + . + + + +