https://github.com/lirone-iitc/lab05-events-triggering
The project: An Order Processing Service built with Node.js, containing several core modules:
src/
order.js — create orders, update statuses, validate shipping eligibility
pricing.js — calculate final prices with discounts
validator.js — validate order fields
tests/
order.test.js
pricing.test.js
Run locally:
npm install
npm run lint
npm test
The existing Workflow:
The file .github/workflows/ci.yml already contains:
lint jobtest job — with needs: [lint]summary job — with needs: [lint, test] and if: always()The current trigger is:
on:
push:
pull_request:
Your task:
Upgrade the on: block and add more advanced workflow capabilities.
Some GitHub events support multiple activity types that can be filtered.
For example, pull_request can trigger on:
opened