Read the workflow: when does the nightly run start?
QuizMedium
Read the workflow.
.github/workflows/api-tests.yml
name: api-tests
on:
pull_request:
schedule:
- cron: "30 1 * * *"
workflow_dispatch:
inputs:
groups:
description: TestNG groups to run
type: choice
options: [smoke, regression]
default: smoke
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v6
with:
distribution: temurin
java-version: "21"
cache: maven
- name: Run tests
run: mvn -B test -Dgroups=${{ inputs.groups || 'smoke' }}
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
- uses: actions/upload-artifact@v7
if: failure()
with:
name: surefire-reports
path: target/surefire-reports/
Which statements about the schedule are true? Choose all that apply.
- It runs daily at 01:30 UTC (the world time standard), because scheduled workflows use UTC by default
- It runs the workflow file from the default branch
- Runs can start later than scheduled when GitHub Actions is busy
- It runs at 01:30 in the time zone of whoever wrote the file
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.