This repository provides an example of the complete deployment pipeline of the "Todo App". Includes:
4. Github actions workflows for the build and test in a Docker container, deployment pipeline to Render.io and Health check pipeline
- Clone this repository or unzip the downloaded file.
- Install dependencies with
npm install
. - Run tests using the following commands:
docker build -t <desired image name> .
docker run -it --rm --name <desired container name> -v ./allure-report:/app/allure-report -p 3000:3000 <docker image name from previous step> npm test
docker run -it --rm --name direct -v ${pwd}:/app -w /app -p 3000:3000 mcr.microsoft.com/playwright:v1.42.1-jammy npm t
npm run test
to run the test file.npm run posttest
to create an Allure report.npm run reset
to reset the database of the app
Author of the TodoMVC app used for testing: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022