How to pass Github workflows : can we check it locally ?

shikshak-kumar

New member
Hi everyone

I’m contributing to Talawa Admin and Talawa API, and I wanted to understand how contributors can pass GitHub Actions workflows more confidently.

My Questions:​

  1. Is it possible to run GitHub workflow checks locally before pushing a PR?
  2. Which commands should we run locally to mirror CI/CD as closely as possible?
  3. How can we debug or view failed tests locally when CI fails?
 
@shikshak-kumar There are tools available to simulate GitHub workflows locally, but they aren’t very reliable. The best approach is:
  • Run the commands defined in package.json and any Python scripts under .github/workflows/scripts locally.
  • If you’re modifying a workflow itself, test it first in your forked repository before merging.
 
Back
Top