This PR adds a CI/CD pipeline to the project using GitHub actions.
On a push or pull request on the main branch, the pipeline will perform the following steps:
Installing dependencies
Run tests for the frontend and backend
If the tests pass, build the frontend otherwise error!
Deploying the frontend to GitHub pages
Other changes :wrench:
I deleted the testing.yml file as it is no longer needed and added the cicd.yml file to run the tests and if they pass, do the frontend build and if it passes also deploy the application to the GitHub pages and otherwise error! (I used the old testing.yml file as inspiration to create the new cicd.yml file).
I updated the README.md file to explain how a developer can configure the project to start working.
I also updated the vite.config.ts file and added a new base url for the application. Since GitHub pages will be used to deploy the application, the base url must be the name of the repository for this to work.
๐ Description
This PR adds a CI/CD pipeline to the project using GitHub actions. On a push or pull request on the
main
branch, the pipeline will perform the following steps:Other changes :wrench:
I deleted the
testing.yml
file as it is no longer needed and added thecicd.yml
file to run the tests and if they pass, do the frontend build and if it passes also deploy the application to the GitHub pages and otherwise error! (I used the oldtesting.yml
file as inspiration to create the newcicd.yml
file).I updated the
README.md
file to explain how a developer can configure the project to start working.I also updated the
vite.config.ts
file and added a new base url for the application. Since GitHub pages will be used to deploy the application, the base url must be the name of the repository for this to work.