Fix ESLint step in CI - part 2 (#1086)

* Run ESLint inside the testing container

* Switch to `docker exec` as the container is still alive after the testing

* Get back to `docker run`, as `exec` doesn't work for stopped containers

* Add missing ESLint plugin for React

* And 1 more missing plugin

* Add missing command to copy the report

* Set `$PHOTOVIEW_LISTEN_IP` to "0.0.0.0" as it has to accept connections from outside and from the healthcheck in localhost

---------

Co-authored-by: Konstantin Koval <kkb@ukr.net>
This commit is contained in:
Kostiantyn
2024-10-04 12:56:17 +03:00
committed by GitHub
parent ff009a6ae6
commit 87acd54291
5 changed files with 1989 additions and 241 deletions

View File

@@ -125,7 +125,8 @@ jobs:
- name: Run ESLint
working-directory: ui
run: |
npm run lint:ci || true
docker run --name eslint photoview/ui npm run lint:ci || true
docker cp eslint:/app/ui/eslint-report.txt ./
echo "--------------------------"
echo "ESLint execution results :"
echo "--------------------------"