feat(ci): Prevent test runs outside of container

It's not safe, we write and delete files all over the place!
This commit is contained in:
Raphael Reitzig 2024-04-03 23:56:16 +02:00
parent a0aa142288
commit 5c886dcd1c
2 changed files with 8 additions and 1 deletions

View file

@ -43,6 +43,10 @@ COPY --chown=test:test conf.d $TEST_HOME/.config/fish/conf.d/
COPY --chown=test:test functions $TEST_HOME/.config/fish/functions/
RUN ls -R $TEST_HOME/.config/fish/
# Signal we're safely running in a container;
# we abort the tests to avoid breaking the host system!
ENV RUNNING_IN_CONTAINER=yessir
# Run tests
COPY test ./
ENTRYPOINT ["cucumber"]