Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Turbo] document running tests locally #1778

Merged
merged 1 commit into from
Apr 25, 2024
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
19 changes: 19 additions & 0 deletions src/Turbo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ infrastructure for you!

Help Symfony by [sponsoring][3] its development!

## Running the Tests

Configure test environment (working directory: `src/Turbo`):

```bash
composer update
docker compose up -d
cd tests/app
yarn install
yarn build
php public/index.php doctrine:schema:create
```

Run tests (working directory: `src/Turbo`):

```bash
vendor/bin/simple-phpunit
```

## Resources

- [Documentation](https://symfony.com/bundles/ux-turbo/current/index.html)
Expand Down
3 changes: 2 additions & 1 deletion src/Turbo/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
"symfony/web-profiler-bundle": "^5.4|^6.0|^7.0",
"symfony/webpack-encore-bundle": "^2.1.1",
"symfony/expression-language": "^5.4|^6.0|^7.0"
"symfony/expression-language": "^5.4|^6.0|^7.0",
"dbrekelmans/bdi": "dev-main"
},
"conflict": {
"symfony/flex": "<1.13"
Expand Down
14 changes: 14 additions & 0 deletions src/Turbo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
###> symfony/mercure-bundle ###
mercure:
image: dunglas/mercure
ports:
- 3000:3000
environment:
SERVER_NAME: ':3000'
MERCURE_PUBLISHER_JWT_KEY: '!ChangeMe!'
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeMe!'
MERCURE_EXTRA_DIRECTIVES: |
anonymous
cors_origins *
###< symfony/mercure-bundle ###
Loading