name: QA Debug on: push: branches: - main workflow_dispatch: jobs: prepare: name: ๐Ÿ—๏ธ Prepare & Install runs-on: docker container: image: catthehacker/ubuntu:act-latest steps: - name: ๐Ÿงน Clean Runner Infrastructure run: | docker builder prune -f --filter "until=24h" || true docker image prune -f --filter "until=24h" || true docker system prune -f --volumes --filter "until=24h" || true - name: Checkout repository uses: actions/checkout@v4 - 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 || 'git.infra.mintel.me/api/packages/mmintel/npm' }}" echo "@mintel:registry=https://$REGISTRY" > .npmrc TOKEN_REGISTRY=$(echo "$REGISTRY" | sed 's|https://||') echo "//$TOKEN_REGISTRY/:_authToken=${{ secrets.REGISTRY_PASS || secrets.NPM_TOKEN }}" >> .npmrc - name: ๐Ÿงน Wipe Workspace run: | rm -rf .next .turbo node_modules || true pnpm store prune || true - name: Install dependencies run: | pnpm install --frozen-lockfile