diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index a6efd7c0f..3b09aa50b 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -14,54 +14,30 @@ jobs: context: ./backend dockerfile: ./backend/Dockerfile target: build - needsSeed: true - name: webapp context: ./webapp dockerfile: ./webapp/Dockerfile target: build - needsSeed: false - name: neo4j context: ./neo4j dockerfile: ./neo4j/Dockerfile target: community - needsSeed: false - steps: - name: Checkout repository uses: actions/checkout@v4 - - - name: Setup .env files + - name: setup .env files run: | cp backend/.env.test_e2e backend/.env cp webapp/.env.template webapp/.env - - - name: Setup Node.js (for optional seeding) - if: matrix.needsSeed == true - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install ts-node (only if needed) - if: matrix.needsSeed == true - run: | - yarn global add ts-node tsconfig-paths typescript - - uses: docker/setup-buildx-action@v3 - - name: Build ${{ matrix.name }} image uses: docker/build-push-action@v5 with: context: ${{ matrix.context }} file: ${{ matrix.dockerfile }} target: ${{ matrix.target }} + push: false outputs: type=docker,dest=/tmp/${{ matrix.name }}.tar - - - name: Seed database (if needed) - if: matrix.needsSeed == true - run: | - echo "🔧 Seeding database for ${{ matrix.name }}..." - npx ts-node --require tsconfig-paths/register backend/src/db/seed.ts - - name: Upload ${{ matrix.name }} image uses: actions/upload-artifact@v4 with: @@ -121,7 +97,6 @@ jobs: cd backend && yarn install --frozen-lockfile && yarn build && cd .. cd webapp && yarn install --frozen-lockfile && yarn build && cd .. npx cypress verify || echo "⚠️ Cypress verify failed (non-blocking)" - npx ts-node --require tsconfig-paths/register backend/src/db/seed.ts if [ ! -f /opt/cucumber-json-formatter ]; then wget --no-verbose -O /opt/cucumber-json-formatter "https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-386" chmod +x /opt/cucumber-json-formatter