зеркало из https://github.com/nextcloud/cookbook.git
Enable mounting of workspace in testing container
This commit is contained in:
Родитель
38952d3e69
Коммит
1fab9ba3a9
|
@ -7,4 +7,4 @@ echo "Creating test docker image with the following settings"
|
|||
echo "PHP version: $INPUT_PHPVERSION"
|
||||
|
||||
docker build -t docker-tests --build-arg PHPVERSION="$INPUT_PHPVERSION" .
|
||||
docker run -e INPUT_DB docker-tests
|
||||
docker run -e INPUT_DB -v $GITHUB_WORKSPACE:/workdir docker-tests
|
||||
|
|
|
@ -8,6 +8,9 @@ RUN apt-get update && \
|
|||
apt-get install -y --no-install-recommends npm make default-mysql-client postgresql-client && \
|
||||
apt-get clean
|
||||
|
||||
RUN mkdir /workdir
|
||||
WORKDIR /workdir
|
||||
|
||||
COPY test-entrypoint.sh /
|
||||
ENTRYPOINT ["/test-entrypoint.sh"]
|
||||
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
php --version
|
||||
|
||||
# Prepare the system
|
||||
npm install -g npm@latest
|
||||
# npm install -g npm@latest
|
||||
|
||||
# Build the system
|
||||
pwd
|
||||
ls
|
||||
|
||||
env
|
||||
|
|
Загрузка…
Ссылка в новой задаче