GitHub Actions

GitHub Actions

GLS-000114

Intermediatecloud-deployment1 min read
github workflowgithub ci.github/workflowsactions yamlgithub pipeline

Definition

GitHub's built-in CI/CD system — run automated tests, checks, and deployments when code is pushed.

نظام CI/CD المدمج في GitHub — تشغيل الاختبارات الآلية والفحوصات والنشرات عند دفع الكود.

Why It Matters

GitHub Actions enforces sprint certification gates — typecheck, build, and audits must pass before any code merges to master.

GitHub Actions تُطبِّق بوابات شهادة Sprint — يجب أن تنجح typecheck والبناء والتدقيقات قبل دمج أي كود في master.

Full Definition

GitHub Actions lets you define automated workflows in YAML files at .github/workflows/. Workflows trigger on events: push, pull_request, schedule. A workflow for 404Fault might run: npm run typecheck, npm run build, npm run audit:glossary on every pull request — blocking merge if any step fails. Actions are free for public repos and have generous free minutes for private repos.
GitHub Actions يتيح تعريف تدفقات عمل آلية في ملفات YAML في .github/workflows/. تُشغَّل تدفقات العمل عند أحداث: push وpull_request وschedule. تدفق عمل لـ 404Fault قد يشغِّل: npm run typecheck وnpm run build وnpm run audit:glossary على كل pull request — يحجب الدمج إذا فشلت أي خطوة. Actions مجانية للمستودعات العامة ولديها دقائق مجانية سخية للمستودعات الخاصة.

Example Usage

A .github/workflows/quality.yml runs npm run typecheck && npm run build on every PR, blocking merge until both pass.

ملف .github/workflows/quality.yml يشغِّل npm run typecheck && npm run build على كل PR، يحجب الدمج حتى يمرا كلاهما.

Knowledge Graph

Avoid these mistakes when using GitHub Actions:

1

Storing secrets in workflow YAML files (use GitHub Secrets)

2

Not caching node_modules (makes every workflow run slow)

Sign in to unlock guided AI explanations from AI Teacher.

Generate a Prompt

Copy this prompt and use it directly with any AI model — no setup needed.

Ready-to-Use Prompt
Help me build a project using GitHub Actions.

Explain:
1. What is GitHub Actions and why it matters
2. The core architecture and required tools
3. Step-by-step implementation plan
4. Common mistakes to avoid: Storing secrets in workflow YAML files (use GitHub Secrets), Not caching node_modules (makes every workflow run slow)
5. Best practices and production tips

Official Resources