DevOps

GitHub Actions

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

22 domande da colloquio·
Mid-Level
1

What is a workflow in GitHub Actions?

Risposta

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?

Risposta

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?

Risposta

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 domande da colloquio

Padroneggia DevOps per il tuo prossimo colloquio

Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.

Inizia gratis