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

        Workflow files

        Opening GitHub Actions
        Your turn

        GitHub Actions workflow and YAML cheat sheet

        Workflow keys

        GitHub stores workflow YAML in .github/workflows/. In the official syntax reference, on selects events, jobs defines work, runs-on selects a runner and steps orders the operations inside a job. A step uses run for a shell command or uses for an action.

        Read this small example as a sequence:

        name: Check
        on: push
        jobs:
          test:
            runs-on: ubuntu-latest
            steps:
              - run: echo "ready"

        A push starts the workflow. The test job selects a runner and prints ready. The example doesn’t check out repository files or test an application. Those need explicit steps.

        Configuration and evidence

        Indentation changes which mapping owns a key. A valid YAML document can still describe the wrong workflow. Check the event, job and step in the simulated run after editing. The local interpreter implements a teaching subset; use GitHub’s current schema and a real repository to validate features outside that subset.

        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.