Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lakshyajit165/node_postgres_cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshyajit165 committed Mar 13, 2022
2 parents 222e150 + eeefcc1 commit ea6ab1f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Configuring a simple CICD pipeline with unit and integration testing using Node.js and PostgreSQL

- Create a simple CRUD application with the necessary endpoints/middlewares/ORM.
- Connext to PostgreSQL database using docker on the local machine.
- Write test cases for the endpoints using chai and mocha
- Configure a github action workflow to test the end-points every time there is a push to a specific branch or a pull request.
- Configure the branch protection rules in the repository similar to this:
![Screenshot from 2022-03-13 09-23-24](https://user-images.githubusercontent.com/30868587/158044367-373a3e4d-930e-4b7a-b5a5-a58786422004.png)
- Now whenever the action is triggered and all checks pass, it will look something like this:
![Screenshot from 2022-03-12 20-31-26](https://user-images.githubusercontent.com/30868587/158044403-ead9a475-8e73-4c57-adc0-415807de2bf2.png)

0 comments on commit ea6ab1f

Please sign in to comment.