Skip to content

Commit

Permalink
#2513 change autotests docker
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaPlyako committed May 17, 2023
1 parent fa17858 commit 6c6d451
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ jobs:
run: npm ci
- name: Build all packages
run: npm run build
- name: Build frontend for docker
- name: Build frontend and autotests for docker
run: npm run docker:build
- name: Build playwright tests in docker
run: docker-compose build autotests
- name: Run playwright tests in docker
run: cd ketcher-autotests && npm run docker:test
- uses: actions/upload-artifact@v3
Expand Down
3 changes: 0 additions & 3 deletions ketcher-autotests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@ WORKDIR /app

COPY . .

ENV CI false
ENV MODE standalone

RUN npm ci && npx playwright install
2 changes: 1 addition & 1 deletion ketcher-autotests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ selectNestedTool - select specific tool that has sub / nested levels.

### How to run

1. Build frontend for docker (directory "ketcher"):
1. Build frontend and autotests for docker (directory "ketcher"):
- `npm run docker:build`
2. Run tests in the directory "ketcher-autotests":
- `npm run docker:test` run all tests
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"serve:standalone": "cd example && npm run serve:standalone",
"serve": "run-p 'serve:remote' 'serve:standalone'",
"serve:demo": "cd demo && npm run serve",
"docker:build": "docker-compose up --no-start frontend && docker-compose start frontend",
"docker:build:frontend": "docker-compose up --no-start frontend && docker-compose start frontend",
"docker:build:autotests": "docker-compose build autotests",
"docker:build": "npm run docker:build:frontend && npm run docker:build:autotests",
"docker:down": "docker-compose down"
},
"devDependencies": {
Expand Down

0 comments on commit 6c6d451

Please sign in to comment.