Github Actions Test With
Complete Solution
The Workflow Syntax is written in? - ANSWER YAML
The Workflow Syntax must have what file extensions? - ANSWER .yml or
.yaml
The Workflow is stored in what directory? - ANSWER .github/workflows/
Each different YAML file corresponds to what? - ANSWER A different
workflow.
Where is the Workflow's name displayed? - ANSWER In the repository's
actions page
What is the Workflow, Job, or Step ENV? - ANSWER A map of environment
variables that are available within each Workflow.
What is the On Event used for? - ANSWER The event type that triggers the
Workflow.
How can you provide arguments to the On Event in your Workflow? -
ANSWER As a single event string, an array of events, or a configuration map
that restricts the execution of a workflow.
With regards to the On Event, Paths specify what? - ANSWER Specify which
files must have been modified in order to run a workflow.
With regards to the On Event, if your rules are made up of only exclusions,
,you can use what keywords? - ANSWER Branches-ignore, tags-ignore, and
paths-ignore.
With regards to the On Event, what keyword forms cannot be mixed. -
ANSWER The "-ignore' form and the inclusive version.
With regards to the On Event, what types of keywords allow us to narrow
down activities? - ANSWER Opened, Created, Edited, etc...
A workflow is made up of one or more...? - ANSWER One or more Jobs
Jobs are identified by what? - ANSWER A unique Job ID or name. Starts with
a letter or underscore.
How do jobs run as a default? - ANSWER Jobs run in parallel
Where does each job run? - ANSWER Each job runs in a fresh instance
specified by `runs-on`.
What is the Job Name used for? - ANSWER It's the name displayed on
GitHub.
, What is the Needs keyword? - ANSWER Identifies any job that must complete
successfully before this job can run. Makes the jobs run sequentially.
How can arguments be passed to the Needs keyword? - ANSWER Arguments
can be passed as a string or as an array of strings.
What happens if a job needs another job and it fails? - ANSWER All jobs that
need a failed job are skipped unless the job uses a conditional statement that
causes the job to continue.
What does the 'runs-on' keyword determine? - ANSWER It determines the
type of virtual host machine to run the job on.
Where can the jobs virtual host run? - ANSWER It can run either in a Github, a
self-hosted runner, or a user-specified container.
What can be ran in a container? - ANSWER A container can run any steps in a
job that don't already specify a container.
If you have steps that use both script and container actions, what will happen
to the two containers? - ANSWER The container actions will run as siblings
Complete Solution
The Workflow Syntax is written in? - ANSWER YAML
The Workflow Syntax must have what file extensions? - ANSWER .yml or
.yaml
The Workflow is stored in what directory? - ANSWER .github/workflows/
Each different YAML file corresponds to what? - ANSWER A different
workflow.
Where is the Workflow's name displayed? - ANSWER In the repository's
actions page
What is the Workflow, Job, or Step ENV? - ANSWER A map of environment
variables that are available within each Workflow.
What is the On Event used for? - ANSWER The event type that triggers the
Workflow.
How can you provide arguments to the On Event in your Workflow? -
ANSWER As a single event string, an array of events, or a configuration map
that restricts the execution of a workflow.
With regards to the On Event, Paths specify what? - ANSWER Specify which
files must have been modified in order to run a workflow.
With regards to the On Event, if your rules are made up of only exclusions,
,you can use what keywords? - ANSWER Branches-ignore, tags-ignore, and
paths-ignore.
With regards to the On Event, what keyword forms cannot be mixed. -
ANSWER The "-ignore' form and the inclusive version.
With regards to the On Event, what types of keywords allow us to narrow
down activities? - ANSWER Opened, Created, Edited, etc...
A workflow is made up of one or more...? - ANSWER One or more Jobs
Jobs are identified by what? - ANSWER A unique Job ID or name. Starts with
a letter or underscore.
How do jobs run as a default? - ANSWER Jobs run in parallel
Where does each job run? - ANSWER Each job runs in a fresh instance
specified by `runs-on`.
What is the Job Name used for? - ANSWER It's the name displayed on
GitHub.
, What is the Needs keyword? - ANSWER Identifies any job that must complete
successfully before this job can run. Makes the jobs run sequentially.
How can arguments be passed to the Needs keyword? - ANSWER Arguments
can be passed as a string or as an array of strings.
What happens if a job needs another job and it fails? - ANSWER All jobs that
need a failed job are skipped unless the job uses a conditional statement that
causes the job to continue.
What does the 'runs-on' keyword determine? - ANSWER It determines the
type of virtual host machine to run the job on.
Where can the jobs virtual host run? - ANSWER It can run either in a Github, a
self-hosted runner, or a user-specified container.
What can be ran in a container? - ANSWER A container can run any steps in a
job that don't already specify a container.
If you have steps that use both script and container actions, what will happen
to the two containers? - ANSWER The container actions will run as siblings