From a36a7fe19dc08883b3fadfcfa760ea76ace711c8 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 27 Apr 2026 09:31:25 +0200 Subject: [PATCH] ci: fix broken symlinks and lychee args in qa.yml --- .gitea/workflows/qa.yml | 52 +++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/qa.yml b/.gitea/workflows/qa.yml index d809d3a..c474f9a 100644 --- a/.gitea/workflows/qa.yml +++ b/.gitea/workflows/qa.yml @@ -36,12 +36,6 @@ jobs: run: | rm -rf .next .turbo node_modules || true pnpm install --no-frozen-lockfile --reporter=append-only - - name: 📦 Archive dependencies - uses: actions/upload-artifact@v3 - with: - name: node_modules - path: node_modules - retention-days: 1 static: name: 🔍 Static Analysis @@ -60,10 +54,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: 📥 Restore dependencies - uses: actions/download-artifact@v3 - with: - name: node_modules + - name: 🔐 Registry Auth + run: | + REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" + echo "@mintel:registry=https://$REGISTRY" > .npmrc + echo "//$REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}" >> .npmrc + - name: Install dependencies + run: pnpm install --no-frozen-lockfile - name: 🌐 HTML Validation env: NEXT_PUBLIC_BASE_URL: 'https://testing.mb-grid-solutions.com' @@ -92,10 +89,13 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: 📥 Restore dependencies - uses: actions/download-artifact@v3 - with: - name: node_modules + - name: 🔐 Registry Auth + run: | + REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" + echo "@mintel:registry=https://$REGISTRY" > .npmrc + echo "//$REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}" >> .npmrc + - name: Install dependencies + run: pnpm install --no-frozen-lockfile - name: 🔍 Install Chromium run: | apt-get update && apt-get install -y gnupg wget ca-certificates @@ -130,17 +130,20 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - - name: 📥 Restore dependencies - uses: actions/download-artifact@v3 - with: - name: node_modules + - name: 🔐 Registry Auth + run: | + REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" + echo "@mintel:registry=https://$REGISTRY" > .npmrc + echo "//$REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}" >> .npmrc + - name: Install dependencies + run: pnpm install --no-frozen-lockfile - name: 📦 Depcheck continue-on-error: true run: pnpm dlx depcheck --ignores="*eslint*,*typescript*,*tailwindcss*,*postcss*,*prettier*,*@types/*,*husky*,*lint-staged*,*@next/*,*@lhci/*,*commitlint*,*cspell*,*rimraf*,*@payloadcms/*,*start-server-and-test*,*html-validate*,*critters*,*dotenv*,*turbo*,autoprefixer,pa11y-ci,pino-pretty" - name: 🔗 Lychee Link Check uses: lycheeverse/lychee-action@v2 with: - args: --accept 200,204,429 --timeout 15 content/ app/ public/ + args: --accept 200,204,429 --timeout 15 app/ public/ fail: true performance: @@ -160,10 +163,13 @@ jobs: uses: pnpm/action-setup@v3 with: version: 10 - - name: 📥 Restore dependencies - uses: actions/download-artifact@v3 - with: - name: node_modules + - name: 🔐 Registry Auth + run: | + REGISTRY="${{ vars.REGISTRY_HOST || 'npm.infra.mintel.me' }}" + echo "@mintel:registry=https://$REGISTRY" > .npmrc + echo "//$REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.GITEA_PAT || secrets.MINTEL_PRIVATE_TOKEN }}" >> .npmrc + - name: Install dependencies + run: pnpm install --no-frozen-lockfile - name: 🔍 Install Chromium run: | apt-get update && apt-get install -y gnupg wget ca-certificates