diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index b263361..6f45f36 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -24,7 +24,7 @@ jobs: - name: lint+test working-directory: ci - run: docker compose up -d --quiet-pull + run: docker compose up --quiet-pull env: PHP_VERSION: ${{ matrix.php-version }} DRUPAL_VERSION: ${{ matrix.drupal-version }} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..374c1c4 --- /dev/null +++ b/composer.json @@ -0,0 +1,20 @@ +{ + "name": "drupal/turnstile_protect", + "description": "Put your site routes behind a Cloudflare Turnstile", + "type": "drupal-module", + "license": "GPL-2.0+", + "homepage": "https://www.drupal.org/project/turnstile_protect", + "support": { + "issues": "https://www.drupal.org/project/issues/turnstile_protect" + }, + "authors": [ + { + "name": "Joe Corall", + "email": "jjc223@lehigh.edu", + "role": "Owner" + } + ], + "require" : { + "drupal/turnstile": "^1" + } +} \ No newline at end of file diff --git a/tests/src/Kernel/TurnstileProtectTest.php b/tests/src/Kernel/TurnstileProtectTest.php new file mode 100644 index 0000000..a932794 --- /dev/null +++ b/tests/src/Kernel/TurnstileProtectTest.php @@ -0,0 +1,39 @@ +addStatus("OK"); + $this->assertTrue($this->container->get('module_handler')->moduleExists('turnstile_protect'), 'The turnstile_protect module is enabled.'); + } + + /** + * Tests basic configuration or service. + */ + public function testBasicFunctionality() { + // Example: Check a service or configuration provided by your module. + $config = $this->config('turnstile_protect.settings'); + $this->assertNotEmpty($config, 'turnstile_protect settings configuration is available.'); + } + +}