diff --git a/.gitea/workflows/quality-assurance-template.yml b/.gitea/workflows/quality-assurance-template.yml index f088462..3b5ac73 100644 --- a/.gitea/workflows/quality-assurance-template.yml +++ b/.gitea/workflows/quality-assurance-template.yml @@ -34,8 +34,33 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Debug Output - run: echo "🚀 Prepare job started" + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 10 + - 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: 🔍 Diagnostics + run: | + echo "👤 User: $(id)" + echo "📂 Directory: $(pwd)" + echo "📂 Disk Space:" + df -h + - name: Install dependencies + run: | + rm -rf .next .turbo node_modules || true + pnpm install --no-frozen-lockfile --reporter=append-only + - name: 📦 Archive dependencies (Debug) + run: | + echo "📦 node_modules size:" + du -sh node_modules || echo "No node_modules" static: name: 🔍 Static Analysis