GITHUB-ACTIONS · Question #28
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
The correct answer is A. It can test code in multiple versions of a programming language. D. It can test code in multiple operating systems.. A matrix strategy allows you to define different versions of a programming language (or any other environment setting) and run tests on each version simultaneously. This is particularly useful for testing code compatibility across different versions of a language. A matrix strate
Question
What are the advantages of using a matrix strategy in a job definition? (Choose two.)
Options
- AIt can test code in multiple versions of a programming language.
- BIt can decrease the costs for running multiple combinations of programming language/operating
- CIt can run up to 512 jobs per workflow run.
- DIt can test code in multiple operating systems.
How the community answered
(22 responses)- A91% (20)
- B5% (1)
- C5% (1)
Explanation
A matrix strategy allows you to define different versions of a programming language (or any other environment setting) and run tests on each version simultaneously. This is particularly useful for testing code compatibility across different versions of a language. A matrix strategy can also be used to test code on multiple operating systems (e.g., Windows, macOS, Linux) by defining these operating systems as matrix variables. This enables cross- platform testing within the same workflow.
Topics
Community Discussion
No community discussion yet for this question.