From 90f12c35b78f3e7c33cb581640771dfe6fa83a79 Mon Sep 17 00:00:00 2001 From: Ninosaurier Date: Mon, 3 Aug 2026 19:49:03 +0200 Subject: [PATCH] fix(ci-runner): Build and push Dockerfile.test image, run component tests against it --- .gitea/workflows/quality-gate.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index 22bc368..59b222a 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -68,7 +68,7 @@ jobs: - name: Run unit tests run: pnpm test:unit - component-tests: + build-test-image: runs-on: ubuntu-docker-dind container: image: git.byting-pandas.ninja/ci/node22-docker:latest @@ -81,15 +81,21 @@ jobs: steps: - uses: actions/checkout@v4 - - run: corepack enable - - run: corepack prepare pnpm@11.11.0 --activate - - - run: pnpm install --frozen-lockfile - - - name: Verify Docker availability + - name: Build and push test image run: | - docker --version - docker compose version + docker login git.byting-pandas.ninja -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} + docker build -t git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }} -f Dockerfile.test . + docker push git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }} - - name: Run component tests (Docker) - run: pnpm test:component \ No newline at end of file + component-tests: + needs: build-test-image + runs-on: ubuntu-docker-dind + container: + image: git.byting-pandas.ninja/ci/luna-charts-test:${{ gitea.sha }} + credentials: + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_TOKEN }} + steps: + - name: Run component tests (Playwright) + working-directory: packages/luna-charts + run: pnpm test:browser \ No newline at end of file