عرض عملي: بناء خط Shop في GitHub Actions
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
a PR workflow that builds and tests Shop. Prepares JNR-051-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Create
.github/workflows/ci.ymltriggered bypull_request. - Add checkout, setup-java with cache, and
./mvnw -B verify. - Push a branch, open a PR, and watch the run.
- Make a test fail on purpose and see the red check.
- Planned mistake: a build that passes with zero tests run because tests were skipped with
-DskipTests; remove the flag and confirm the test count in the log. - Upload the test report as an artifact.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.