Complete the code to specify the event that triggers the GitHub Actions workflow on push.
on: [1]The push event triggers the workflow when code is pushed to the repository.
Complete the code to specify the operating system for the job runner.
runs-on: [1]ubuntu-latest is commonly used for Linux runners in GitHub Actions.
Fix the error in the step name to correctly run Cypress tests.
- name: [1]
run: npx cypress runStep names should be clear and properly capitalized for readability.
Fill both blanks to set up Node.js and install dependencies before running tests.
- uses: actions/setup-node@v3 with: node-version: [1] - run: [2]
yarn install when the project uses npm.Node.js version 16 is commonly used, and npm install installs dependencies.
Fill all three blanks to create a job that runs on Ubuntu, installs dependencies, and runs Cypress tests.
jobs:
test:
runs-on: [1]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: [2]
- name: Run Cypress Tests
run: [3]This job runs on Ubuntu, installs dependencies with npm, and runs Cypress tests.