Feature ci/cd GitHub actions #38
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template for Pollz Frontend
✏️ Summary of Changes
📦 Dependencies
Core Actions
actions/checkout@v4
- For code checkoutactions/setup-node@v4
- For Node.js environment setupactions/upload-artifact@v4
- For build artifact storageRuntime Dependencies
Node.js: 20.x
(specified in workflow)npm
: Used for package management and cachingUbuntu
: ubuntu-latest runner environmentProject Dependencies
Required npm Scripts (from package.json):
npm run lint:check
- ESLint code quality checksnpm run test:ci
- Jest test execution with CI configurationnpm run build
- React production build.npmrc
file - This file configures npm settings, and in your project it enables legacy-peer-deps=true to resolve React 19 compatibility issues with older testing libraries during CI/CD.Environment Variables
CI=true
- For test executionCI=false
- For build processREACT_APP_API_URL
- API endpoint configuration (uses secret or default)🐛 Related Issues
The issue is related to: Add GitHub Actions CI/CD pipeline #5,
github issue link
📋 Checklist
npm test
)npm run lint:check
)npm run build
)🚀 CI/CD Status
📝 Additional Notes
Dependency chain for demonstration of the gihub action workflow.