Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ MAILGUN_DOMAIN=
#Mandrill
MANDRILL_APIKEY=

#Resend
RESEND_APIKEY=

#Recaptcha
RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,24 @@ jobs:

- name: Run tests
run: composer test

- name: Generate the demo API module
run: php qt module:generate Api --template=DemoApi --yes

- name: Smoke test the API
run: |
php qt serve --host=127.0.0.1 --port=8000 > server.log 2>&1 &
for i in $(seq 1 20); do
curl -s -o /dev/null http://127.0.0.1:8000/ && break
sleep 1
done
status=$(curl -s -o response.json -w '%{http_code}' http://127.0.0.1:8000/api/posts)
echo "GET /api/posts returned $status"
cat response.json
echo
if [ "$status" != "200" ]; then
echo "Expected 200. Server log:"
cat server.log
exit 1
fi
grep -q '"status":"success"' response.json
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ debug.log
/shared/store/*
/shared/emails/*
/shared/config/auth.php
/cache/*
!/cache/.gitkeep

# Generated modules
/modules
Expand Down
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

File renamed without changes.
Empty file removed libraries/.gitkeep
Empty file.
2 changes: 0 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ parameters:
paths:
- shared
- helpers
- hooks
- libraries
- migrations
- public/index.php
excludePaths:
Expand Down
2 changes: 0 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
return RectorConfig::configure()
->withPaths([
__DIR__ . '/helpers',
__DIR__ . '/hooks',
__DIR__ . '/libraries',
__DIR__ . '/migrations',
__DIR__ . '/public/index.php',
__DIR__ . '/shared',
Expand Down
11 changes: 0 additions & 11 deletions shared/config/dependencies.php

This file was deleted.

12 changes: 0 additions & 12 deletions shared/config/hooks.php

This file was deleted.

4 changes: 4 additions & 0 deletions shared/config/mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@
'mandrill' => [
'api_key' => env('MANDRILL_APIKEY', null),
],

'resend' => [
'api_key' => env('RESEND_APIKEY', null),
],
];
5 changes: 0 additions & 5 deletions tests/_root/shared/config/dependencies.php

This file was deleted.

5 changes: 0 additions & 5 deletions tests/_root/shared/config/hooks.php

This file was deleted.

Loading