From d4941ab6d67f49c5a58b59514978283d1706ea2a Mon Sep 17 00:00:00 2001 From: ffaerber Date: Tue, 7 Jul 2026 17:57:23 +0200 Subject: [PATCH] =?UTF-8?q?feat(ci):=20re-enable=20actions/cache=20?= =?UTF-8?q?=E2=80=94=20runner=20cache=20server=20now=20reachable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/agent.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.gitea/workflows/agent.yml b/.gitea/workflows/agent.yml index 0622d03..76227ec 100644 --- a/.gitea/workflows/agent.yml +++ b/.gitea/workflows/agent.yml @@ -5,6 +5,10 @@ name: agent on: workflow_call: +# Pinned opencode version — used to install it and to key the CI cache below. +env: + OPENCODE_VERSION: "1.17.13" + jobs: agent: @@ -121,6 +125,24 @@ jobs: curl -sS -X POST -H "Authorization: token $SELF_TOKEN" -H "Content-Type: application/json" \ "$R" -d '{"content":"eyes"}' -w '\nreact -> HTTP %{http_code}\n' || true + - name: Cache opencode CLI + if: steps.prep.outputs.mode != 'skip' + continue-on-error: true # a cache backend hiccup must never fail an agent run + uses: actions/cache@v4 + with: + path: ~/.opencode + key: opencode-${{ runner.os }}-${{ env.OPENCODE_VERSION }} + + - name: Cache Playwright browsers + npm (browser agents only) + if: steps.prep.outputs.mode != 'skip' && (steps.prep.outputs.name == 'senior' || steps.prep.outputs.name == 'lead' || steps.prep.outputs.name == 'qa') + continue-on-error: true + uses: actions/cache@v4 + with: + path: | + ~/.cache/ms-playwright + ~/.npm + key: playwright-npm-${{ runner.os }}-v1 + - name: Install opencode + provider config (+ Playwright MCP for browser agents) if: steps.prep.outputs.mode != 'skip' env: