Skip to content

Commit 87e4f0c

Browse files
committed
ci(docker): run the image tests against the built image
build-and-push-image builds the image and pushes it to the local registry; pull it into the daemon and run `pnpm test:docker` against it (VIVLIOSTYLE_CLI_IMAGE=localhost:5000/vivliostyle/cli:latest) so the suite gates CI instead of only being runnable locally.
1 parent 3d216bb commit 87e4f0c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,14 @@ jobs:
108108
- name: Inspect
109109
run: |
110110
docker buildx imagetools inspect localhost:5000/vivliostyle/cli:latest
111+
- name: Pull the built image into the Docker daemon
112+
run: docker pull localhost:5000/vivliostyle/cli:latest
113+
- uses: actions/setup-node@v4
114+
with:
115+
node-version-file: .nvmrc
116+
cache: pnpm
117+
- run: pnpm install
118+
- name: Run the image tests
119+
run: pnpm test:docker
120+
env:
121+
VIVLIOSTYLE_CLI_IMAGE: localhost:5000/vivliostyle/cli:latest

0 commit comments

Comments
 (0)