Trying to fix issue with Github rights
This commit is contained in:
parent
3aec774cf3
commit
ab337409a1
3 changed files with 7 additions and 3 deletions
5
.github/workflows/end_to_end_tests.yml
vendored
5
.github/workflows/end_to_end_tests.yml
vendored
|
@ -26,5 +26,8 @@ jobs:
|
||||||
- name: "Start environment"
|
- name: "Start environment"
|
||||||
run: docker-compose up -d
|
run: docker-compose up -d
|
||||||
|
|
||||||
|
- name: "Wait for environment to build"
|
||||||
|
run: docker-compose logs -f --tail=0 front | grep -m 1 "Compiled successfully"
|
||||||
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
run: docker-compose -f docker-compose.testcafe.yml up
|
run: UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.testcafe.yml up
|
||||||
|
|
|
@ -7,7 +7,8 @@ services:
|
||||||
BROWSER: "chromium --use-fake-device-for-media-stream"
|
BROWSER: "chromium --use-fake-device-for-media-stream"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tests:/tests
|
- ./tests:/tests
|
||||||
- ./tests/.testcaferc.json:/.testcaferc.json
|
|
||||||
- ./maps:/maps
|
- ./maps:/maps
|
||||||
|
user: "${UID}:${GID}"
|
||||||
|
|
||||||
# security_opt:
|
# security_opt:
|
||||||
# - seccomp:unconfined
|
# - seccomp:unconfined
|
||||||
|
|
|
@ -12,7 +12,7 @@ $ npm test
|
||||||
Alternatively, you can use docker-compose to run the tests:
|
Alternatively, you can use docker-compose to run the tests:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker-compose -f docker-compose.testcafe.yml up
|
$ UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.testcafe.yml up
|
||||||
```
|
```
|
||||||
|
|
||||||
Note: by default, tests are running in Chrome locally and in Chromium in the Docker image.
|
Note: by default, tests are running in Chrome locally and in Chromium in the Docker image.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue