Prompt file imported from Gisat/ptr-be-core (
.github/prompts/beforepush.prompt.md). Copyright stays with the author.
Before we push code to the repository, we need to ensure that everything is in order.
Process:
- In terminal run
npm run before:pushto check if linting, building, and testing pass successfully. - If any of the steps fail, fix the issues:
- For linting issues, refer to ESLint output and fix code style or errors.
- For build issues, check TypeScript errors and fix them.
- For test failures, review test output, identify failing tests, and fix the underlying issues.
- After fixing issues, repeat step 1 until all steps pass successfully.
- Once all checks pass, proceed to commit and push the code to the repository.