mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:19:18 +00:00
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:
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -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 "--------------------------"
|
||||
|
||||
@@ -28,7 +28,7 @@ services:
|
||||
# PHOTOVIEW_SQLITE_PATH: ${PHOTOVIEW_SQLITE_PATH}
|
||||
## Uncomment the next line if PHOTOVIEW_DATABASE_DRIVER is set to `postgres` in the .env
|
||||
# PHOTOVIEW_POSTGRES_URL: postgres://${PGSQL_USER}:${PGSQL_PASSWORD}@photoview-pgsql:5432/${PGSQL_DATABASE}?sslmode=${PGSQL_SSL_MODE}
|
||||
PHOTOVIEW_LISTEN_IP: "photoview"
|
||||
PHOTOVIEW_LISTEN_IP: "0.0.0.0"
|
||||
## Uncomment the next variable and set a different value to change the port photoview uses inside the container.
|
||||
## If you change this, remember to update the port mapping (under the `ports:`) above!
|
||||
# PHOTOVIEW_LISTEN_PORT: 80
|
||||
|
||||
@@ -22,7 +22,7 @@ services:
|
||||
PHOTOVIEW_MYSQL_URL: "${MARIADB_USER}:${MARIADB_PASSWORD}@tcp(photoview-mariadb)/${MARIADB_DATABASE}"
|
||||
## Uncomment the next line if PHOTOVIEW_DATABASE_DRIVER is set to `sqlite` in the .env
|
||||
# PHOTOVIEW_SQLITE_PATH: ${PHOTOVIEW_SQLITE_PATH}
|
||||
PHOTOVIEW_LISTEN_IP: "photoview"
|
||||
PHOTOVIEW_LISTEN_IP: "0.0.0.0"
|
||||
## Optional: If you are using Samba/CIFS-Share and experience problems with "directory not found"
|
||||
## Enable the following Godebug
|
||||
# - GODEBUG=asyncpreemptoff=1
|
||||
|
||||
2221
ui/package-lock.json
generated
2221
ui/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -73,6 +73,8 @@
|
||||
"c8": "^7.11.3",
|
||||
"eslint": "^8.19.0",
|
||||
"eslint-config-prettier": "^8.5.0",
|
||||
"eslint-plugin-react": "^7.37.1",
|
||||
"eslint-plugin-react-hooks": "^4.6.2",
|
||||
"i18next-parser": "^8.13.0",
|
||||
"lint-staged": "^13.0.3",
|
||||
"nodemon": "^3.1.4",
|
||||
|
||||
Reference in New Issue
Block a user