@@ -424,30 +424,12 @@ jobs:
424424 path : apps/frontend/build
425425 key : frontend-build-${{ github.sha }}-${{ github.run_id }}
426426
427- # TODO: See how to proceed with e2e caching because there is some error:
428- # - You're caching 'node_modules' but are not caching this path: /home/runner/.cache/Cypress
429- # - You ran 'npm install' at an earlier build step but did not persist: /home/runner/.cache/Cypress
430- # For now it doesn't take so much time to install node_modules in the e2e because there are only few.
431- # - name: Cache e2e node_modules
432- # env:
433- # CYPRESS_CACHE_FOLDER: cache/Cypress
434- # id: cached-node-modules-e2e
435- # uses: actions/cache@v5
436- # with:
437- # path: apps/e2e/node_modules
438- # key: node-modules-${{ hashFiles('apps/e2e/package-lock.json') }}-${{ env.NODE_VERSION }}
439-
440427 - name : Install e2e dependencies
441428 env :
442429 CYPRESS_CACHE_FOLDER : .cache/Cypress
443430 if : steps.cached-node-modules-e2e.outputs.cache-hit != 'true'
444431 run : npm run install:e2e
445432
446- - name : Download required repositories
447- run : |
448- cd "$GITHUB_WORKSPACE/.."
449- git clone --depth 1 --branch "${{ needs.resolve_dep.outputs.FACTORY_TAG }}" https://github.com/UserOfficeProject/user-office-factory.git
450-
451433 - name : Login to GitHub Container Registry
452434 uses : docker/login-action@v4
453435 with :
@@ -540,6 +522,15 @@ jobs:
540522
541523 npm run e2e:after:start -- --dns-result-order=ipv4first
542524
525+ - name : Factory logs
526+ if : failure()
527+ run : |
528+ cd apps/backend
529+ echo "===== factory logs (stfc) ====="
530+ docker compose -f docker-compose-stfc.e2e.yml logs --no-color factory || true
531+ echo "===== factory logs ====="
532+ docker compose -f docker-compose.e2e.yml logs --no-color factory || true
533+
543534 - name : Upload cypres screenshots
544535 if : failure()
545536 uses : actions/upload-artifact@v6
0 commit comments