More CI fix

This commit is contained in:
David Négrier 2021-11-24 09:12:24 +01:00
parent 24249a1e74
commit a9ecbeec84
3 changed files with 5 additions and 4 deletions

View file

@ -23,6 +23,9 @@ jobs:
- name: "Setup .env file"
run: cp .env.template .env
- name: "Edit ownership of file for test cases"
run: sudo chown 1000:1000 -R maps/tests/Variables/Cache
- name: "Start environment"
run: docker-compose up -d
@ -30,4 +33,4 @@ jobs:
run: (docker-compose -f docker-compose.testcafe.yml pull &) && docker-compose logs -f --tail=0 front | grep -m 1 "Compiled successfully"
- name: "Run tests"
run: DOCKER_UID=$(id -u) DOCKER_UID=$(id -g) docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe
run: docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe

View file

@ -8,7 +8,5 @@ services:
volumes:
- ./tests:/tests
- ./maps:/maps
user: "${DOCKER_UID}:${DOCKER_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_UID=$(id -u) DOCKER_GID=$(id -g) docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe
$ docker-compose -f docker-compose.testcafe.yml up --exit-code-from testcafe
```
Note: by default, tests are running in Chrome locally and in Chromium in the Docker image.