File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/playwright:focal
2
+ WORKDIR /app
3
+ COPY . .
4
+ RUN rm package-lock.json
5
+ RUN npm install
6
+ RUN npx playwright install
7
+ RUN npm run build
8
+ ENTRYPOINT ["npm" , "run" ]
9
+ CMD ["test" ]
Original file line number Diff line number Diff line change 43
43
"prepare" : " npm run build" ,
44
44
"pub:next" : " cross-env RELEASE_TAG=next sh build/release.sh" ,
45
45
"pub" : " sh build/release.sh" ,
46
- "postinstall" : " opencollective-postinstall"
46
+ "postinstall" : " opencollective-postinstall" ,
47
+ "docker:build" : " docker build -f Dockerfile -t docsify-test:local ." ,
48
+ "docker:clean" : " docker rmi docsify-test:local" ,
49
+ "docker:test" : " docker run --rm -it --ipc=host --user pwuser docsify-test:local test" ,
50
+ "docker:test:e2e" : " docker run --rm -it --ipc=host --user pwuser docsify-test:local test:e2e" ,
51
+ "docker:test:integration" : " docker run --rm -it --ipc=host --user pwuser ddocsify-test:local test:integration" ,
52
+ "docker:test:unit" : " docker run --rm -it --ipc=host --user pwuser docsify-test:local test:unit"
47
53
},
48
54
"husky" : {
49
55
"hooks" : {
You can’t perform that action at this time.
0 commit comments