Trying to fix issue with Github rights

This commit is contained in:
David Négrier 2021-11-23 18:42:25 +01:00
parent 3aec774cf3
commit ab337409a1
3 changed files with 7 additions and 3 deletions

View File

@ -26,5 +26,8 @@ jobs:
- name: "Start environment"
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"
run: docker-compose -f docker-compose.testcafe.yml up
run: UID=$(id -u) GID=$(id -g) docker-compose -f docker-compose.testcafe.yml up

View File

@ -7,7 +7,8 @@ services:
BROWSER: "chromium --use-fake-device-for-media-stream"
volumes:
- ./tests:/tests
- ./tests/.testcaferc.json:/.testcaferc.json
- ./maps:/maps
user: "${UID}:${GID}"
# security_opt:
# - seccomp:unconfined

View File

@ -12,7 +12,7 @@ $ npm test
Alternatively, you can use docker-compose to run the tests:
```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.