Skip to content

Commit da14a70

Browse files
committed
[Turbo][Tests] debug
1 parent b0f7da9 commit da14a70

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

.github/workflows/test-turbo.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ jobs:
8484
- name: Install JavaScript dependencies
8585
working-directory: src/Turbo/tests/app
8686
run: php public/index.php importmap:install
87+
88+
- name: Compile assets
89+
working-directory: src/Turbo/tests/app
90+
run: php public/index.php asset-map:compile
8791

8892
- name: Create DB
8993
working-directory: src/Turbo/tests/app
@@ -96,3 +100,12 @@ jobs:
96100
vendor/bin/simple-phpunit
97101
env:
98102
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=1'
103+
104+
- name: Upload Panther error screenshots
105+
if: ${{ always() }}
106+
uses: actions/upload-artifact@v4
107+
with:
108+
name: Panther error screenshots (PHP ${{ matrix.php-version }}, Deps ${{ matrix.dependency-version }})
109+
path: src/Turbo/tests/app/var/error-screenshots
110+
if-no-files-found: ignore
111+
retention-days: 3

src/Turbo/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/composer.lock
66
/phpunit.xml
77
/vendor/
8+
/drivers/
89
/tests/app/assets/vendor/
910
/tests/app/var/
10-
/tests/app/public/build/
11-
node_modules/
11+
/tests/app/public/assets/

src/Turbo/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"symfony/ux-twig-component": "^2.21",
5757
"symfony/twig-bundle": "^6.4|^7.0",
5858
"symfony/web-profiler-bundle": "^5.4|^6.0|^7.0",
59-
"symfony/webpack-encore-bundle": "^2.1.1",
6059
"symfony/expression-language": "^5.4|^6.0|^7.0",
6160
"dbrekelmans/bdi": "dev-main"
6261
},

src/Turbo/phpunit.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<server name="KERNEL_CLASS" value="App\Kernel" />
1616
<server name="PANTHER_WEB_SERVER_DIR" value="./tests/app/public" />
1717
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>
18+
<server name="PANTHER_ERROR_SCREENSHOT_DIR" value="./tests/app/var/error-screenshots"/>
1819
</php>
1920

2021
<testsuites>

src/Turbo/tests/app/Kernel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function registerBundles(): iterable
5757
yield new MercureBundle();
5858
yield new TwigComponentBundle();
5959
yield new TurboBundle();
60-
yield new WebpackEncoreBundle();
6160
yield new StimulusBundle();
6261
yield new WebProfilerBundle();
6362
yield new DebugBundle();
@@ -111,7 +110,6 @@ protected function configureContainer(ContainerConfigurator $container): void
111110
$container
112111
->extension('doctrine', $doctrineConfig);
113112

114-
$container->extension('webpack_encore', ['output_path' => 'build']);
115113
$container->extension('web_profiler', [
116114
'toolbar' => true,
117115
'intercept_redirects' => false,

0 commit comments

Comments
 (0)