File tree Expand file tree Collapse file tree
.github/pie-behaviour-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#
44# docker buildx build --file .github/pie-behaviour-tests/Dockerfile -t pie-behat-test .
55# docker run --volume .:/github/workspace -ti pie-behat-test
6- FROM ubuntu:24.04
6+ FROM alpine/git:v2.49.1 AS clone_ext_repo
7+
8+ RUN cd / && git clone https://github.com/asgrim/example-pie-extension.git
9+
10+ FROM ubuntu:24.04 AS default
711
812# Add the `unzip` package which PIE uses to extract .zip files
913RUN export DEBIAN_FRONTEND="noninteractive" ; \
@@ -36,6 +40,8 @@ RUN touch /usr/local/lib/php.ini
3640COPY --from=ghcr.io/php/pie:bin /pie /usr/bin/pie
3741RUN pie install xdebug/xdebug
3842
43+ COPY --from=clone_ext_repo /example-pie-extension /example-pie-extension
44+
3945WORKDIR /github/workspace
4046
4147ENV USING_PIE_BEHAT_DOCKERFILE=1
Original file line number Diff line number Diff line change @@ -357,4 +357,21 @@ public function iShouldSeeAllTheExtensionsAreNowInstalled(): void
357357 $ this ->assertCommandSuccessful ();
358358 Assert::contains ($ this ->output , 'example_pie_extension ' );
359359 }
360+
361+ #[Given('I am in a PIE project ' )]
362+ public function iAmInAPIEProject (): void
363+ {
364+ $ examplePieProject = (string ) realpath ('/example-pie-extension ' );
365+ assert ($ examplePieProject !== '' );
366+
367+ $ this ->workingDirectory = $ examplePieProject ;
368+ }
369+
370+ #[When('I run a command to install the extension ' )]
371+ public function iRunACommandToInstallTheExtension (): void
372+ {
373+ $ this ->theExtension = 'example_pie_extension ' ;
374+ $ this ->thePackage = 'asgrim/example-pie-extension ' ;
375+ $ this ->runPieCommand (['install ' ]);
376+ }
360377}
You can’t perform that action at this time.
0 commit comments