Interview Prep/GitHub Actions/Caching, Artifacts, Runners & ARC

Cache or artifact: classify five things.

BeginnerConceptCaching, Artifacts, Runners & ARC
Answer
  • ~/.npm download cache: cache (speed, disposable, keyed by lockfile).
  • Compiled dist/ passed from build job to deploy job in the same run: artifact.
  • JUnit XML and coverage HTML for humans: artifact.
  • Terraform provider plugins: cache.
  • Release binaries: neither long term; attach to a GitHub Release or push to a registry.

Rule: cache may vanish at any time and the job must still work; artifacts are outputs you expect to exist.

All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Runners & ARC