Use GitHub Actions for CI

MS Learn module: Understand CI with GitHub Actions · Learning objectives: describe workflows, events, jobs, steps, and actions; create a workflow YAML that builds on push/PR and deploys to Azure.

Overview

CI done inside the repo host. GitHub Actions uses .github/workflows/*.yml where events fire workflows of jobs/steps running on GitHub-hosted or self-hosted runners, reusing the action ecosystem.

Units / lessons covered

  • Workflows, events, and the on: trigger
  • Jobs, steps, and actions; runs-on
  • Reusing logic (composite actions, reusable workflows)
  • Deploying to Azure with GitHub Actions

Key terms / commands

  • .github/workflows/<name>.yml · on: · runs-on: · actions/checkout · actions/upload-artifact

Hands-on / what to try

Create a workflow that runs npm ci + npm test on push, then add actions/upload-artifact; deploy a build to an Azure App Service with the Azure login action.

Exam focus

  • Workflow file location and YAML schema differ from Azure Pipelines.
  • Events (push, pull_request, schedule, workflow_dispatch); filters on branches/paths.
  • Sharing output between jobs via actions/upload-artifact / download-artifact.

Path MOC · set-up-ci-with-azure-pipelines · pipeline-artifacts-and-templates