
GitHub Actions
Workflows, jobs, steps, actions marketplace, OIDC, secrets, matrix builds, caching, troubleshooting workflows
1What is a workflow in GitHub Actions?
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.
2What is the correct syntax to trigger a workflow on every push to the main branch?
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.
3What is the difference between a job and a step in GitHub Actions?
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.
How to reference a secret in a GitHub Actions workflow?
Which event triggers a workflow when creating a pull request?
+19 면접 질문