https://github.com/IITC-College/cid-cd-day-1
Build a complete CI pipeline for this project from scratch. There is no workflow in this repository. You will create the workflow file, define the jobs, and apply controlled event triggering, manual dispatch with inputs, concurrency, and CI skipping.
.github folder. No workflow. No CI.package.json scripts available: lint, test, build.You will create the workflow only. Do not change the app code.
Create .github/workflows/ci.yml. Complete every task.
name.lint: checkout, set up Node 20, npm ci, npm run linttest: checkout, set up Node 20, npm ci, npm testsummary: runs only after lint and test succeedpush so the workflow runs only on these branches:
maindeveloppush so it runs only when files change in these paths:
src/**tests/**pull_request so it runs only when:
mainopenedsynchronizereopenedworkflow_dispatch trigger.workflow_dispatch inputs:
environment
stagingskip_tests
falsesummary job, print the selected environment input.concurrency.