What You Have

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:

The current trigger is:

on:
  push:
  pull_request:

Your task: Upgrade the on: block and add more advanced workflow capabilities.


Part 1: Activity Types and Event Filters

Explanation

Some GitHub events support multiple activity types that can be filtered.

For example, pull_request can trigger on: