Actions
What this solves
You want faster Forgejo Actions runs without hiding dependency or runner problems.
Caching is a performance feature, not a correctness feature. Workflows should pass cold before relying on cache hits.
Actions
You want faster Forgejo Actions runs without hiding dependency or runner problems.
Good cache keys are tied to dependency lockfiles and toolchain versions. A cache should reduce repeated work without masking missing install steps or making a job depend on state that may disappear.
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
- run: npm ci
- run: npm testMake the job pass after clearing all caches.
Include lockfiles and language versions in cache keys.
Measure runtime before and after so cache maintenance is justified.
Understand what usually ports from GitHub Actions to Forgejo Actions, what needs testing, and how to plan a staged workflow migration.
Plan Docker image builds on Forgejo Actions runners, including cache behavior, registry login, secrets and when dedicated runners help.
Automate Forgejo with fj, Actions, and API calls: schedule routine jobs, wire repository hooks, handle secrets, and cut releases without touching the UI.