Skip to content

Conversation

@abbaselhajj05
Copy link

Objective:
Implement a CI/CD pipeline using GitHub Actions to automate testing, linting, formatting checks, build artifact generation, and deployment to GitHub Pages.
Work Completed:

  • Added a workflow file at .github/workflows/ci-cd.yml.
  • Configured triggers for push and pull_request events on main.
  • Set up Node.js environment and installed dependencies with npm ci.
  • Automated linting (npm run lint), formatting checks (npm run format:check), and unit tests (npm test).
  • Built the project (npm run build) and generated logs.
  • Uploaded build logs and demo site as artifacts.
  • Configured deployment job to publish the demo site to GitHub Pages on successful pushes to main.
    Results:
  • CI pipeline runs successfully on pull requests, ensuring code quality before merging.
  • Deployment job runs after merging into main, publishing the demo site automatically.
  • Verified that GitHub Pages is enabled and serving the demo site.
    Conclusion:
    This PR demonstrates a complete CI/CD workflow from code validation to automated deployment, fulfilling the tutorial requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant