mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 12:29:35 +01:00
working compose file for cypress
This commit is contained in:
parent
44d8606d1a
commit
14c0c5060a
@ -4,8 +4,4 @@ export default defineConfig({
|
|||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: 'http://localhost:3000',
|
baseUrl: 'http://localhost:3000',
|
||||||
},
|
},
|
||||||
env: {
|
|
||||||
umami_user: 'admin',
|
|
||||||
umami_password: 'pennydoodoo',
|
|
||||||
},
|
|
||||||
});
|
});
|
@ -2,7 +2,8 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
umami:
|
umami:
|
||||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
build: ../
|
||||||
|
#image: ghcr.io/umami-software/umami:postgresql-latest
|
||||||
ports:
|
ports:
|
||||||
- '3000:3000'
|
- '3000:3000'
|
||||||
environment:
|
environment:
|
||||||
@ -38,10 +39,13 @@ services:
|
|||||||
- umami
|
- umami
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
- CYPRESS_baseUrl=http://localhost:3000
|
- CYPRESS_baseUrl=http://umami:3000
|
||||||
entrypoint: /bin/sh -c "yarn install"
|
- CYPRESS_umami_user=admin
|
||||||
working_dir: /cypress
|
- CYPRESS_umami_password=umami
|
||||||
volumes:
|
volumes:
|
||||||
|
- ../tsconfig.json:/tsconfig.json
|
||||||
|
- ../cypress.config.ts:/cypress.config.ts
|
||||||
- ./:/cypress
|
- ./:/cypress
|
||||||
|
- ../node_modules/:/node_modules
|
||||||
volumes:
|
volumes:
|
||||||
umami-db-data:
|
umami-db-data:
|
||||||
|
@ -4,5 +4,5 @@
|
|||||||
"lib": ["es5", "dom"],
|
"lib": ["es5", "dom"],
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
},
|
},
|
||||||
"include": ["**/*.ts"]
|
"include": ["**/*.ts", "../cypress.config.ts"]
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,8 @@
|
|||||||
"lint": "next lint --quiet",
|
"lint": "next lint --quiet",
|
||||||
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install",
|
"prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install",
|
||||||
"postbuild": "node scripts/postbuild.js",
|
"postbuild": "node scripts/postbuild.js",
|
||||||
"cypress-open": "cypress open cypress run --config-file cypress/cypress.config.ts",
|
"cypress-open": "cypress open cypress run",
|
||||||
"cypress-run": "cypress run cypress run --config-file cypress/cypress.config.ts"
|
"cypress-run": "cypress run cypress run"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"**/*.{js,jsx,ts,tsx}": [
|
"**/*.{js,jsx,ts,tsx}": [
|
||||||
|
Loading…
Reference in New Issue
Block a user