Skip to content

Commit 2427e79

Browse files
committed
Run tests within the built dev-quality-eval docker image itself
Closes #415
1 parent 030bb02 commit 2427e79

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/job-container-image-build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,22 @@ jobs:
4242
push: true
4343
cache-from: type=gha
4444
cache-to: type=gha,mode=max
45+
46+
test:
47+
runs-on: ubuntu-latest
48+
needs: docker
49+
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v4
53+
54+
- name: Run tests from Docker image
55+
run: |
56+
output=$(docker run -v ./docs:/app/svg --user $(id -u):1000 --rm ghcr.io/symflower/eval-dev-quality:${GITHUB_SHA::7} svgexport /app/svg/cta.svg /app/svg/cta.png)
57+
58+
expected="/app/svg/cta.svg /app/svg/cta.png png 100% 1x 0:0:1920:400 1920:400"
59+
if [ "$output" == "$expected" ]; then
60+
exit 0
61+
else
62+
exit 1
63+
fi

0 commit comments

Comments
 (0)