From ef26cf33fac97ba837da5a7b6748d5a9e7899c42 Mon Sep 17 00:00:00 2001 From: 07souravkunda Date: Mon, 9 Oct 2023 23:59:01 +0530 Subject: [PATCH 1/5] add: staging npm package publish --- .github/workflows/reviewing_changes.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/reviewing_changes.yml b/.github/workflows/reviewing_changes.yml index ea52b56..cb01165 100644 --- a/.github/workflows/reviewing_changes.yml +++ b/.github/workflows/reviewing_changes.yml @@ -9,6 +9,9 @@ on: commit_sha: description: 'The full commit id to build' required: true + package_url: + description: 'Staging package url' + required: false jobs: comment-run: @@ -52,6 +55,17 @@ jobs: with: node-version: ${{ matrix.node }} + - name: Setup staging npm package + if: ${{ github.event.inputs.package_url != '' }} + run: | + echo 'Publishing tar.gz to local registry' + curl -o staging_package.tgz '${{ github.event.inputs.package_url }}' + npm install verdaccio -g + verdaccio & + npm config set registry http://localhost:4873 + npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e dummy@gmail.com -r http://localhost:4873 + npm publish staging_package.tgz --registry http://localhost:4873/ + - name: Install dependencies run: npm install From cdc96b764edafb0ab880d6f31492495affb015b3 Mon Sep 17 00:00:00 2001 From: Sourav Kunda <50537259+07souravkunda@users.noreply.github.com> Date: Fri, 3 Nov 2023 18:56:39 +0530 Subject: [PATCH 2/5] update: shell as bash --- .github/workflows/reviewing_changes.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/reviewing_changes.yml b/.github/workflows/reviewing_changes.yml index cb01165..6b2f6fa 100644 --- a/.github/workflows/reviewing_changes.yml +++ b/.github/workflows/reviewing_changes.yml @@ -65,6 +65,7 @@ jobs: npm config set registry http://localhost:4873 npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e dummy@gmail.com -r http://localhost:4873 npm publish staging_package.tgz --registry http://localhost:4873/ + shell: bash - name: Install dependencies run: npm install From 30e9cf44f224d0a845a3fe6b49bfbed4ad36fa0f Mon Sep 17 00:00:00 2001 From: Sourav Kunda <50537259+07souravkunda@users.noreply.github.com> Date: Fri, 8 Dec 2023 20:44:36 +0530 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 827b299..acd64a1 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ JestJS integration with BrowserStack for E2E functional testing of UI using Sele - Clone the repository - Install dependencies using, npm install or yarn install - Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml) `npx setup --username userName --key accessKey` -- To run sample test, run `npm run sample-test` or `yarn run sample-test` +- To run sample test, run `npm run sample-test` or `yarn run sample-test` - To run tests on private websites, - set browserstackLocal: true at [browserstack.yml](browserstack.yml) - run `npm run sample-local-test` or `yarn run sample-local-test` From 9066069b87d90e283399bc0d2a1d33f9627f18dc Mon Sep 17 00:00:00 2001 From: Sourav Kunda <50537259+07souravkunda@users.noreply.github.com> Date: Sat, 9 Dec 2023 19:12:08 +0530 Subject: [PATCH 4/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index acd64a1..a645f28 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ JestJS integration with BrowserStack for E2E functional testing of UI using Sele --- - Clone the repository -- Install dependencies using, npm install or yarn install +- Install dependencies using, npm install or yarn install - Set your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) in [browserstack.yml](browserstack.yml) `npx setup --username userName --key accessKey` - To run sample test, run `npm run sample-test` or `yarn run sample-test` - To run tests on private websites, From 7ef35b59a74d0743cb6ba0ebea2cc334f5d8c121 Mon Sep 17 00:00:00 2001 From: 07souravkunda Date: Sat, 9 Dec 2023 21:01:02 +0530 Subject: [PATCH 5/5] fix: semgrep --- .github/workflows/reviewing_changes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reviewing_changes.yml b/.github/workflows/reviewing_changes.yml index 6b2f6fa..2d24842 100644 --- a/.github/workflows/reviewing_changes.yml +++ b/.github/workflows/reviewing_changes.yml @@ -26,6 +26,7 @@ jobs: env: BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + PACKAGE_URL: ${{ github.event.inputs.package_url }} steps: - uses: actions/checkout@v3 @@ -59,7 +60,7 @@ jobs: if: ${{ github.event.inputs.package_url != '' }} run: | echo 'Publishing tar.gz to local registry' - curl -o staging_package.tgz '${{ github.event.inputs.package_url }}' + curl -o staging_package.tgz "$PACKAGE_URL" npm install verdaccio -g verdaccio & npm config set registry http://localhost:4873