Skip to content

Commit 929800d

Browse files
committed
Add plugin test to image.yml
1 parent dea5a9c commit 929800d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/image.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ jobs:
8282
|grep 'ADMINER_DEFAULT_SERVER_WORKS'
8383
env:
8484
container_name: adminer_defaultserver
85+
- name: Verify that loading plugins work.
86+
if: ${{ ! contains(steps.build.outputs.image, 'fastcgi') }}
87+
run: |
88+
docker run --name $container_name -d -e ADMINER_PLUGINS="tables-filter dark-switcher" ${{ steps.build.outputs.image }}
89+
docker run -i --rm --link $container_name:$container_name buildpack-deps:curl \
90+
curl -fsSL http://$container_name:8080/ \
91+
|grep 'adminerDarkSwitch'
92+
env:
93+
container_name: adminer_plugins
8594
- name: Show Containers and Images
8695
run: |
8796
printf "::group::docker ps -a\n"

0 commit comments

Comments
 (0)