add e2e tests
This commit is contained in:
committed by
Dmitry Verkhoturov
parent
9ad3be2e97
commit
0f7ac514fb
@@ -0,0 +1,36 @@
|
||||
# compose for running e2e tests in CI
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
remark42:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- SKIP_BACKEND_TEST=true
|
||||
- SKIP_FRONTEND_TEST=true
|
||||
|
||||
image: umputun/remark42:dev
|
||||
container_name: "remark42"
|
||||
|
||||
environment:
|
||||
# remark42 hostname used for proper dev auth work for tests container which connects to it
|
||||
# using the such hostname (unlike local development where 127.0.0.1 is used)
|
||||
- REMARK_URL=http://remark42:8080
|
||||
- SECRET=12345
|
||||
- DEBUG=true
|
||||
- ADMIN_PASSWD=password
|
||||
- AUTH_DEV=true # activate local OAuth "dev" listening on http://remark42:8084
|
||||
- ADMIN_SHARED_ID=dev_user # set admin flag for default user on local oauth2
|
||||
- AUTH_ANON=true
|
||||
- AUTH_EMAIL_ENABLE=true
|
||||
volumes:
|
||||
- ./var:/srv/var
|
||||
|
||||
tests:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile.e2e
|
||||
depends_on: [remark42]
|
||||
volumes:
|
||||
- ./playwright-report:/frontend/e2e/playwright-report
|
||||
Reference in New Issue
Block a user