Add e2e tests (#471)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-08-21 14:09:06 +02:00
committed by GitHub
parent 48a4ed2f69
commit ac2e41de80
13 changed files with 257 additions and 3 deletions

View File

@@ -33,8 +33,8 @@ COPY --from=generate /out /
FROM generate AS validate
RUN --mount=type=bind,target=.,rw \
git add -A && cp -rf /out/* .; \
if [ -n "$(git status --porcelain)" ]; then \
if [ -n "$(git status --porcelain -- pb)" ]; then \
echo >&2 'ERROR: Generate result differs. Please update with "docker buildx bake gen-update"'; \
git status --porcelain; \
git status --porcelain -- pb; \
exit 1; \
fi