From d5d56faa70a2536c454bbda6faa91d7407417903 Mon Sep 17 00:00:00 2001 From: aayushRedHat Date: Wed, 17 Jan 2024 17:39:25 +0530 Subject: [PATCH] update doc and add docker file --- test/test-project/README.md | 1 + test/test-project/docker-compose.yml | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/test-project/docker-compose.yml diff --git a/test/test-project/README.md b/test/test-project/README.md index 92bd28bd3..8a4b9894c 100644 --- a/test/test-project/README.md +++ b/test/test-project/README.md @@ -6,5 +6,6 @@ The version of the html-template must be hardcoded to version `0.16.0` because t There are two custom test scripts: - `npm test:project` starts library integration tests that can run the same way both on local and CI - `npm test:global` always fail on local as it tests installation of template under global location. This would mean you have to install template globally before running the test. It means messing with your developer setup. Instead you have a docker compose configuration that you can use to run all tests from the test project in an isolated environment +- `npm test:registry` is for testing arborist functionality to use custom private registry Instead of running tests with `npm test`, make sure you have Docker Compose and run `NODE_IMAGE_TAG=14 docker-compose up`. \ No newline at end of file diff --git a/test/test-project/docker-compose.yml b/test/test-project/docker-compose.yml new file mode 100644 index 000000000..c6c729be1 --- /dev/null +++ b/test/test-project/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3' +services: + test: + privileged: true + image: "node:${NODE_IMAGE_TAG}" + volumes: + - ../../:/app + command: bash /app/test/test-project/test.sh \ No newline at end of file