GitHub Actions

An event starts a workflow of jobs and steps

Eventa push to mainWORKFLOW: .GITHUB/WORKFLOWS/CI.YMLJOB: TEST, ON A RUNNER (UBUNTU-LATEST)step 1check out the codestep 2set up Nodestep 3run the testsa step runs a command, or a ready-made actionGitHub Actions runs a workflow when something happens in the repository.An event starts a workflow, a YAML file kept in the repository. The workflow has jobs, each runon a fresh machine called a runner, and each job has steps. It is how repositories test everypull request, deploy on merge, and automate chores.

An event starts a workflow. Its jobs run on runners, step by step.

GitHub Actions · Going deeper

The words of GitHub Actions

TermMeaningWorkflowAn automated process, written in YAML in .github/workflows/EventWhat starts it: push, pull_request, a schedule, a manual run, an issue openedJobA set of steps that run on one runner; jobs run in parallel by defaultStepOne command, or one actionActionA reusable step, written by GitHub or the communityRunnerThe machine that runs a job: GitHub-hosted, or self-hosted on your ownMarketplaceWhere thousands of ready-made actions are publishedSecretsEncrypted values, such as deploy keys, made available to workflowsCI builds and tests each change. CD deploys it. Actions does both, and much more.Results appear on the Actions tab and as checks on the pull request.

Workflow, event, job, step, action, runner.

GitHub Copilot

From finishing a line to finishing a task

Suggestionscompletes the lineas you typeChatanswers questions,explains, draftsAgent modeedits many files andruns commands in your editorCloud agenttakes an issue andopens a pull requestyou do the work,Copilot assistsCopilot does the work,you review itCopilot works at four levels, from finishing a line to finishing a task.Suggestions and chat help while you write. Agents carry out a whole task: agent mode in youreditor while you watch, and the cloud agent in the background on GitHub. Either way a personreviews the result, and stays responsible for it.

Suggestions, chat, agent mode and the cloud agent: rising autonomy.

GitHub Copilot · Going deeper

Copilot capabilities

CapabilityWhat it meansCode suggestionsInline completions in the editor, from a line to a whole functionCopilot ChatAsk about code in the editor, on GitHub.com, in Mobile or the terminalAgent modeIn the IDE: plans a task, edits files, runs tests, fixes what failsCloud agent (coding agent)On GitHub: assign it an issue; it works in its own environmentMulti-model supportChoose among models from several providers, or let Copilot pickCode reviewAsk Copilot to review a pull request and suggest changesSummariesDraft a pull request description or explain a failed checkCopilot suggests. A person decides: read, test and review everything it produces.Suggestions can be wrong, insecure or out of date, exactly like code from any other source.

Multi-model support, code review, and a person always decides.

Check yourself

On GitHubissue #42 is assigned to CopilotThenCopilot works in the background, in its own environmentResulta pull request, waiting for a person to review

Which Copilot capability is this?

Copilot plans

Business and Enterprise add control, not just capacity

suggestions, chat, agentscentral seat managementorganization-wide policyneeds Enterprise CloudIndividual plansone person, own billing✓✗✗✗Copilot Businessan organization✓✓✓✗Copilot Enterprisea large company✓✓✓✓Individual plans serve one person. Business and Enterprise add control for the organization.With Business, an organization assigns seats and sets policies: which features and models areallowed, and which files Copilot must not read. Enterprise adds the most capacity and earliestaccess to new features, for companies on GitHub Enterprise Cloud.

Individual plans serve one person. Business and Enterprise add seats and policies.

Copilot plans · Going deeper

The plans and the policies

PlanFor whom, and what it addsCopilot FreeAnyone: a limited monthly allowance, to try itCopilot Pro, Pro+, MaxOne person: rising allowances and access to more modelsCopilot BusinessOrganizations: per-seat billing, policy control, audit logsCopilot EnterpriseEnterprise Cloud customers: everything in Business, priority accessPolicies an organization can setFeaturesSwitch chat, agents, code review or previews on or offModelsChoose which models members may usePublic codeBlock suggestions that match public codeContent exclusionName files and repositories Copilot must not use as contextAn enterprise can set one policy for all of its organizations, or let each decide.

Free, Pro, Business, Enterprise, and content exclusion.

Editors in the browser

github.dev edits. A codespace also builds and runs

GITHUB.DEV: AN EDITOR IN YOUR BROWSERpress . in any repository:it opens at once, and it is free✓edit files, commit, open a pull request✗no terminal✗cannot build or run the codeCODESPACES: A WHOLE MACHINE IN THE CLOUDa virtual machine with your repository,ready in a minute or two✓everything github.dev does✓a full terminal✓build, run and debug the codegithub.dev edits. A codespace edits, builds and runs.Both look like Visual Studio Code in a browser tab. github.dev has no computer behind it, so itsuits quick edits. A codespace is a real development machine in the cloud, with a free monthlyallowance for personal accounts and billing after that.

github.dev is a free, instant editor. A codespace is a full machine with a terminal.

Editors in the browser · Going deeper

About Codespaces

About CodespacesStart oneThe Code button on a repository, then the Codespaces tabConnect fromThe browser, Visual Studio Code, or JetBrains IDEsMachine typeYou choose the cores and memory; larger costs moreBillingCompute time and storage; personal accounts have a free monthly quotaStops by itselfAfter 30 minutes without activity, by defaultDeleted by itselfAfter 30 days unused, by default; push your work firstPrebuildsPrepare the environment ahead of time, so new codespaces start fastA codespace is disposable. The repository is where the work is kept.An organization can pay for its members' codespaces and limit the machine types they use.

Machine types, billing, idle timeout and prebuilds.

Check yourself

.devcontainer/devcontainer.json{ "image": "…/python:3.13", "postCreateCommand": "pip install -r requirements.txt" }

What does this file set up?

Dev containers

One file gives every codespace the same setup

.devcontainer/devcontainer.json{ "image": "…/javascript-node:22", "forwardPorts": [3000], "postCreateCommand": "npm install", "customizations": { "vscode": { "extensions": ["dbaeumer.vscode-eslint"] } }}EVERY CODESPACE FOR THIS REPOSITORYNode 22 is installedport 3000 is forwarded to your browserdependencies and the ESLint extension are readyA dev container file describes the environment, so every codespace starts the same.It is committed to the repository like any other file. It names a base image, the tools and editorextensions to add, ports to forward and commands to run. A new contributor is ready to work inminutes, with nothing to install.

A devcontainer.json file defines the image, tools, ports and extensions.

Dev containers · Going deeper

Clue words for Actions, Copilot and Codespaces

When the question saysThe answer isRemember"automate build, test and deploy"GitHub Actionsworkflows in .github/workflows"what starts a workflow"An eventpush, pull_request, schedule"the machine that runs a job"A runnerGitHub-hosted or self-hosted"reusable step from the Marketplace"An action"AI suggestions as you type"GitHub Copilotcode completion"edits several files and runs tests itself"Copilot agent modein the IDE"assign an issue to Copilot"Copilot cloud agentopens a pull request"choose which AI model to use"Multi-model support"manage Copilot seats and policies"Copilot Businessor Enterprise"cloud development environment"Codespacesa VM with a terminal"same environment for every contributor"devcontainer.jsona dev container"quick edit in the browser, no terminal"github.devpress the . keyDomain 4 is 10 to 15% of the exam.

Workflow, runner, agent mode, Codespaces and github.dev.

Check yourself

Taskcorrect two typos in a README fileNeedsno terminal, and nothing has to runWantsto start at once, at no cost

Which tool fits best?

Lesson complete

You finished “Actions, Copilot and Codespaces”

Answer the questions along the way to see your score here.

Open in a new tab