From 97a8401c571c7d92d709dd7b59c42db88ca9a486 Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Sat, 19 Nov 2022 11:14:38 +0000 Subject: [PATCH 1/4] Create ci.yml --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..23a3f7f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: CI + +on: [push, pull-request] + +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 ... + From 750608a57a50e4b7290a2cdb02d7f1b63c2a8cf0 Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Sat, 19 Nov 2022 11:17:40 +0000 Subject: [PATCH 2/4] Create phpunit.xml Copy from https://github.com/php-actions/example-phpunit/blob/master/test/phpunit.xml --- test/phpunit.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/phpunit.xml 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 + + + + + + + + + . + + + + From 57c154ea8cfc8de84baf6dc65ca4dda0744beaae Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Sat, 19 Nov 2022 11:18:53 +0000 Subject: [PATCH 3/4] on=push --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 23a3f7f..84edf90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,6 @@ name: CI -on: [push, pull-request] +on: [push] jobs: build-test: From 5b81418f1948f8c5a39b2ac1377df085c80e5e61 Mon Sep 17 00:00:00 2001 From: "Martin R. Smith" <1695515+ms609@users.noreply.github.com> Date: Sat, 19 Nov 2022 11:22:02 +0000 Subject: [PATCH 4/4] Create composer.json --- composer.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 composer.json 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" + } + } +}