Read the workflow: in what order do the jobs run?
QuizMedium
Read the workflow.
.github/workflows/pipeline.yml
name: pipeline
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: echo "compile and unit tests"
api-tests:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "api tests"
ui-tests:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "ui tests"
report:
needs: [api-tests, ui-tests]
if: always()
runs-on: ubuntu-latest
steps:
- run: echo "publish report"
Which statements are true? Choose all that apply.
- api-tests and ui-tests start after build succeeds, and run in parallel with each other
- If api-tests fails, report still runs, because of if: always()
- If build fails, api-tests and ui-tests are skipped
- All four jobs start at the same moment
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.