mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-25 13:27:10 -07:00
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:
parent
a0aa142288
commit
5c886dcd1c
2 changed files with 8 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue