انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهJNR-051-L02

تشريح GitHub Actions

  • الدرس 2 من 7
  • Junior
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

read and write a workflow file.

الموضوعات المخطط لها

  • Workflows are YAML files in .github/workflows/.
  • on: sets triggers (push, pull request, tags, manual).
  • A workflow has jobs; a job runs on a runner (runs-on: ubuntu-latest) and has steps.
  • A step is either uses: (a reusable action) or run: (a shell command).
  • Secrets are stored in repository settings and read as ${{ secrets.NAME }}; they are masked in logs.
  • Pin action versions; verify current versions before recording.
تفاصيل المخطط المبدئي

عرض عملي

yaml
name: ci
on: [pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: echo "hello"

اختبر فهمك

Where do workflow files live?

أظهر الإجابة

.github/workflows/.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.