-
Notifications
You must be signed in to change notification settings - Fork 0
Implement changes for SDLC - CI pipeline and PR template #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update vitest.config.js with coverage settings and JSX transformation - Configure CI workflow to create coverage directories - Set initial coverage thresholds to 0 for gradual improvement - Add Code Climate test reporter integration The changes ensure proper test coverage reporting both locally and in CI, with Code Climate integration for tracking coverage metrics.
⛔ Snyk checks have failed. 1 issues have been found so far.
⛔ security/snyk check is complete. 1 issues have been found. (View Details) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - minor comments.
.github/workflows/ci.yml
Outdated
NODE_VERSION: '16' | ||
|
||
jobs: | ||
continuous-integration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should align our workflows - please change this to "test" to match the job on npm "test:coverage", and then change the name of the file to continuous-integration.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @timler I have updated my PR
.github/workflows/ci.yml
Outdated
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to add this for my pipeline, so will do that!
- Rename workflow file to continuous-integration.yml - Update job name to test to match npm script (test:coverage) - Add pull request template for standardization
- Update the folder structrure for the pull request template
- '**.md' | ||
- 'docs/**' | ||
- '.gitignore' | ||
- 'LICENSE' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I added - AFAIK you don't need separate definition for pull_request because it's covered under push
on:
push:
paths-ignore:
- '**.md'
- '**.txt'
- '**.json'
- '**.yml'
- '**.properties'
- '**.xml'
- '**.sql'
- '**.csv'
- '**.zip'
- 'docs/**'
- '.gitignore'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense, let me resolve that
- Update paths-ignore to ensure critical files trigger builds - Maintain focus on push events, the pull request trigger is redundant
Moved the PR template from the folder into the main .github folder so the template is applied by default and doesn't need a query parameter
Testing: