A modern CI/CD pipeline demonstration using GitHub Actions
This project showcases the power of GitHub Actions for continuous integration and deployment. It features:
- 🧹 ESLint checks for code quality
- 🌐 Frontend testing to ensure website functionality
- 🔍 Staging workflow for non-main branch testing
- 🚀 Production workflow for main branch deployment
- 🔄 Hourly README updates
Click to expand
Runs on all branches and pull requests:
- 🧹 Performs ESLint checks on the codebase
Click to expand
Runs on all branches except main
, after ESLint success:
- 🌐 Tests frontend functionality
- 📢 Notifies on successful test completion
Click to expand
Runs on the main
branch, after ESLint success:
- 🌐 Tests frontend functionality
- 🚀 Deploys to production if all tests pass
Click to expand
Runs every hour:
- 🔄 Updates the README with the latest information
- 📝 Commits and pushes changes if any were made
- Clone the repository
git clone https://github.com/Bhomesh/github-workflow.git
- Install dependencies
npm install
- Run ESLint
npm run lint
- Start the frontend server
npm start
We welcome contributions! Please follow these steps:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a pull request
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by Bhomesh