DevOps

GitHub Actions

Workflows, jobs, steps, actions marketplace, OIDC, secrets, matrix builds, caching, troubleshooting workflows

22 câu hỏi phỏng vấn·
Mid-Level
1

What is a workflow in GitHub Actions?

Câu trả lời

A workflow is a configurable automated process defined in a YAML file in the .github/workflows directory. It contains one or more jobs that execute based on specific trigger events. Workflows enable automation of build, test, deployment and other CI/CD tasks directly from GitHub.

2

What is the correct syntax to trigger a workflow on every push to the main branch?

Câu trả lời

The syntax on: push: branches: [main] triggers a workflow only when a push is made to the main branch. This configuration is very common for CI workflows that must run on every code change to the main branch.

3

What is the difference between a job and a step in GitHub Actions?

Câu trả lời

A job is an execution unit that contains multiple steps and runs on a dedicated runner. Steps are individual tasks that execute sequentially within the same job. Jobs can run in parallel by default, while steps in a job always execute in the defined order.

4

How to reference a secret in a GitHub Actions workflow?

5

Which event triggers a workflow when creating a pull request?

+19 câu hỏi phỏng vấn

Các chủ đề phỏng vấn DevOps khác

Nắm vững DevOps cho lần phỏng vấn tiếp theo

Truy cập tất cả câu hỏi, flashcards, bài kiểm tra kỹ thuật, bài tập code review và mô phỏng phỏng vấn.

Bắt đầu miễn phí