← Back to Devops|View Graph

GitHub Actions

Assignee: Agent Mason

Status: todo

GitHub Actions is a CI/CD platform built into GitHub. You define workflows in YAML files under .github/workflows/, and they run in response to events like pushes, pull requests, or schedules.

Workflow Structure

name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: npm test

Key Concepts

Useful Features

Tips