Open drtechie opened 3 months ago
Hey @drtechie,
I'm eager to contribute to the AMRIT UI repository by setting up GitHub Actions to automate quality checks and ensure the reliability of the application. I plan to configure the CI/CD pipeline to include linting checks using ESLint, vulnerability scanning with npm audit, and ensuring that all tests pass before any code is merged. This will help maintain high coding standards and project integrity. If everything sounds good, please assign this issue to me so I can get started. Thank you!
@PayalKumari10 go ahead. Feel free to raise a PR to PSMRI/.github
Add Workflow Files:
.github/
└── workflow-templates/
├── eslint.yml
└── npm-audit.yml
In other UI repositories within PSMRI, you can reference these workflow templates using a workflow_call event.
name: Check Eslint errors
on:
push:
branches:
- main
jobs:
call-template:
uses: ./.github/workflow-templates/eslint.yml
Feel free to message me on Discord (handle: drtechie) if you face any trouble.
@drtechie Why was this reopened ? Can I work on it if possible
@Amrit02102004 please go ahead.
Combine both workflow templates into one. You will find an unfinished open PR for reference. https://github.com/PSMRI/.github/tree/main/workflow-templates
Use these workflow templates in other UI repos. Start with HWC-UI.
Please acknowledge by commenting to assign this ticket.
Wip: use workflow templates in other UI repos
Ticket Contents
Description
The AMRIT UI repos, part of the AMRIT (Accessible Medical Records via Integrated Technologies) initiative by Piramal Swasthya, is built with Angular. To maintain high coding standards and ensure the reliability of the application, we need to configure GitHub Actions to automate quality checks before any code is merged into the main branch. This includes enforcing linting, checking for npm vulnerabilities when
package.json
is modified, and ensuring that all tests pass.What You Will Learn:
As a contributor, you will:
Desired Skills:
Goals
Expected Outcome
A fully configured GitHub Actions pipeline that enforces coding standards, reliability checks, and security scans for the AMRIT UI repositories. This setup will ensure that only clean, secure, and well-tested code is merged, maintaining the integrity of the application. The workflows must be configured for all the UI repos. https://github.com/orgs/PSMRI/repositories?q=-UI
Acceptance Criteria
Implementation Details
https://github.com/typicode/husky https://github.com/marketplace/actions/run-eslint https://github.com/marketplace/actions/npm-audit-action
Mockups/Wireframes
NA
Product Name
AMRIT
Organisation Name
Piramal Swasthya Management Research Institute
Domain
Healthcare
Tech Skills Needed
Angular, ESLint, JavaScript, TypeScript
Mentor(s)
@drtechie
Complexity
Medium
Category
CI/CD, Deployment, Testing