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 and what needs testing.
Plan Docker image builds on Forgejo Actions runners, including cache, registry, and secret handling.
Automate Forgejo with fj, Actions, raw API calls, repository hooks, secrets, and release workflows.