diff --git a/.gitea/workflows/quality-assurance-template.yml b/.gitea/workflows/quality-assurance-template.yml index 24b040b..6ae6671 100644 --- a/.gitea/workflows/quality-assurance-template.yml +++ b/.gitea/workflows/quality-assurance-template.yml @@ -32,16 +32,21 @@ jobs: 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 pnpm - uses: pnpm/action-setup@v3 - with: - version: 10 - 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' }}" @@ -49,11 +54,10 @@ jobs: # Remove protocol if present for the token line TOKEN_REGISTRY=$(echo "$REGISTRY" | sed 's|https://||') echo "//$TOKEN_REGISTRY/:_authToken=${{ secrets.NPM_TOKEN || secrets.MINTEL_PRIVATE_TOKEN || secrets.GITEA_PAT }}" >> .npmrc - - name: 🧹 Clean Runner Infrastructure + - name: 🧹 Wipe Workspace 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 + rm -rf .next .turbo node_modules || true + pnpm store prune || true - name: Install dependencies run: | rm -rf .next .turbo node_modules || true