Complete the code to specify the branch to trigger the CI pipeline.
on:
push:
branches:
- [1]The main branch is commonly used as the primary branch to trigger CI pipelines.
Complete the code to run the job on the latest Ubuntu runner.
jobs:
build:
runs-on: [1]The ubuntu-latest runner is commonly used for Linux-based CI jobs.
Fix the error in the step to install dependencies using npm.
steps:
- name: Install dependencies
run: npm [1]npm build which is not a valid npm command.npm start which runs the app instead of installing.The npm install command installs all dependencies listed in package.json.
Fill both blanks to run tests and then build the Remix app.
steps:
- name: Run tests
run: npm [1]
- name: Build app
run: npm [2]npm start instead of npm run build for building.First, tests are run with npm test. Then the app is built with npm run build.
Fill all three blanks to define a job that checks out code, installs dependencies, and runs tests.
jobs:
ci:
runs-on: [1]
steps:
- uses: [2]
- name: Install dependencies
run: npm [3]The job runs on ubuntu-latest. It checks out code using actions/checkout@v3. Then it installs dependencies with npm install.