From 618d24d63ca265535f5cc9cb8d062e31629979af Mon Sep 17 00:00:00 2001 From: MD SADAB SAQIB Date: Sun, 24 Mar 2024 11:27:40 +1100 Subject: [PATCH] adding instruction to create secretes in github --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 38f3a52..3c3c97b 100644 --- a/README.md +++ b/README.md @@ -33,14 +33,7 @@ npm test Report Path: ```bash -path: /report/index.html -``` - -GitHub Actions: -> With Each push on master branch all test will be executed using github action and docker image. -> Post execution report will be copied to github artifact which can be later downloaded. -```bash -Path: https://github.com/sadabnepal/APITestFrameworkMochaTS/actions +path: /report/index_yyyy\'T\'HH-MM-ss.html ``` Docker Run: @@ -50,6 +43,9 @@ docker build -t node-api-image . [ you can given any name of your choice ] docker run node-api-image:latest [ to run test inside docker ] ``` +Run in Github Actions +> Currently test is setup to execute in github action on push event. You need to [create github secrete]((https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)) for `GO_RES_USER_TOKEN` with value generated in `Setup user token` step. + #### Features: - Supertest library - Mocha framework with mochawesome report integration