From 1f68234a49628bdecc0ecdcc7dad148ae2c727eb Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 1 Mar 2026 23:50:13 +0100 Subject: [PATCH] fix(ci): fix TS2741 headerIcon prop in AgbsPDF, clean up debug breadcrumbs, split QA checks --- .gitea/workflows/deploy.yml | 63 ++++------------------------- apps/web/src/components/AgbsPDF.tsx | 1 + 2 files changed, 8 insertions(+), 56 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 51e82d8..2ab371c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -154,16 +154,10 @@ jobs: version: 10 - name: Provide sibling monorepo run: | - git clone https://git.infra.mintel.me/mmintel/at-mintel.git _at-mintel 2>&1 || { - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: git clone failed" -F "priority=8" -F "message=git clone at-mintel failed" || true - exit 1 - } + git clone https://git.infra.mintel.me/mmintel/at-mintel.git _at-mintel sed -i 's|../../../at-mintel|../../_at-mintel|g' apps/web/package.json sed -i 's|../../../at-mintel|../../_at-mintel|g' apps/web/tsconfig.json sed -i 's|../at-mintel|./_at-mintel|g' package.json - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: clone+sed done" -F "priority=2" -F "message=Sibling monorepo cloned and paths rewritten" || true - name: ๐Ÿ” Registry Auth run: | echo "@mintel:registry=https://${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" > .npmrc @@ -172,64 +166,21 @@ jobs: run: | cp .npmrc _at-mintel/ cd _at-mintel - pnpm install --no-frozen-lockfile > /tmp/sibling-install.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/sibling-install.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: sibling pnpm install failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - pnpm build > /tmp/sibling-build.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/sibling-build.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: sibling pnpm build failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: sibling compiled" -F "priority=2" -F "message=at-mintel install+build OK" || true + pnpm install --no-frozen-lockfile + pnpm build - name: Install dependencies run: | pnpm store prune - pnpm install --no-frozen-lockfile > /tmp/main-install.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/main-install.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: main pnpm install failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: deps installed" -F "priority=2" -F "message=Main project install OK" || true + pnpm install --no-frozen-lockfile - name: ๐Ÿงน Lint if: github.event.inputs.skip_checks != 'true' - run: | - pnpm --filter @mintel/web lint --max-warnings 999 > /tmp/lint.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/lint.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: lint failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: lint passed" -F "priority=2" -F "message=Lint OK" || true + run: pnpm --filter @mintel/web lint --max-warnings 999 - name: ๐Ÿ” Typecheck if: github.event.inputs.skip_checks != 'true' - run: | - pnpm --filter @mintel/web typecheck > /tmp/tsc.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/tsc.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: typecheck failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: typecheck passed" -F "priority=2" -F "message=TypeScript OK" || true + run: pnpm --filter @mintel/web typecheck - name: ๐Ÿงช Test if: github.event.inputs.skip_checks != 'true' - run: | - pnpm --filter @mintel/web test > /tmp/test.log 2>&1 || { - TAIL=$(tail -n 30 /tmp/test.log) - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โŒ QA: test failed" -F "priority=8" -F "message=$TAIL" || true - exit 1 - } - curl -sf -X POST "${{ secrets.GOTIFY_URL }}/message?token=${{ secrets.GOTIFY_TOKEN }}" \ - -F "title=โœ… QA: ALL PASSED" -F "priority=2" -F "message=lint+typecheck+test all passed" || true + run: pnpm --filter @mintel/web test # โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ # JOB 3: Build & Push diff --git a/apps/web/src/components/AgbsPDF.tsx b/apps/web/src/components/AgbsPDF.tsx index 3a27790..eb54ee3 100644 --- a/apps/web/src/components/AgbsPDF.tsx +++ b/apps/web/src/components/AgbsPDF.tsx @@ -215,6 +215,7 @@ export const AgbsPDF = ({ companyData={companyData} bankData={bankData} footerLogo={footerLogo} + headerIcon={headerIcon} showPageNumber={false} > {content}