Skip to content
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

Create CI pipeline #36

Open
itsMarcoSolis opened this issue Jan 27, 2024 · 0 comments
Open

Create CI pipeline #36

itsMarcoSolis opened this issue Jan 27, 2024 · 0 comments
Assignees

Comments

@itsMarcoSolis
Copy link
Member

itsMarcoSolis commented Jan 27, 2024

As a developer
I need a CI pipeline in GitHub Actions that builds my project every time I create a pull request to the dev, master or release branch
So that I can ensure that my code integrates seamlessly, passes all build steps, and maintains the quality of the development branch

Details and Assumptions

  • The project is a React application hosted on GitHub.
  • The project follows the Gitflow Workflow. (https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)
  • GitHub Actions is used for continuous integration.
  • The pipeline is implemented as a reusable workflow (https://docs.github.com/en/actions/using-workflows/reusing-workflows)
  • The pipeline triggers on pull requests to the dev, master and release branches.
  • The pipeline includes steps for installing dependencies, building the React project, and optionally running tests (such as unit tests and linters).
  • The build process should succeed without any compilation errors.
  • Node.js v18 and yarn are used for managing dependencies.
  • The dev branch is the primary branch for ongoing development.

Acceptance Criteria

Given the CI pipeline is triggered
When the pipeline executes
Then it installs all necessary dependencies

Given the CI pipeline is triggered
When the pipeline executes
Then it installs all necessary dependencies

And when the dependencies are installed
Then it builds the React project successfully without compilation errors

Given the React project build is successful
When I check the status of the pull request
Then I see a passing build status on the pull request

Given the React project build fails
When I check the status of the pull request
Then I see a failing build status and detailed error messages indicating the cause of the failure
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

No branches or pull requests

2 participants