DevOps

GitHub Actions

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

22 면접 질문·
Mid-Level
1

What is a workflow in GitHub Actions?

답변

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?

답변

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?

답변

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 면접 질문

다음 면접을 위해 DevOps을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기