Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        GitHub Actions course

        Dependency cache keys

        Opening GitHub Actions
        Your turn

        GitHub Actions cache: keys and restore behavior

        Cache identity

        Cache keys describe compatibility. For a Node project, those can include the runner OS and the lockfile hash. If the lockfile changes while the key stays fixed, inspect whether the restored files still match the installation the job requires.

        GitHub’s caching reference distinguishes an exact key hit from a fallback restored through restore-keys. A fallback can save work while still requiring the package manager to complete the installation, and because cache contents can be missing altogether, the job must remain able to recreate them.

        Release evidence

        A cache is not the release package handed to a deployment job. Keep the build output in a named artifact, and retain evidence about the commit that produced it.

        The local cache exercises model keys and fixture content. They do not benchmark package downloads, reproduce remote eviction or prove that cached files are safe. Keep credentials and other sensitive files outside cache paths.

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.