Skip to content

Commit

Permalink
update doc and add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushRedHat committed Jan 17, 2024
1 parent 7cb7fc3 commit d5d56fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/test-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
8 changes: 8 additions & 0 deletions test/test-project/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d5d56fa

Please sign in to comment.