From 6afe404a9db309519dd3133119a06ef9b4a16af2 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 9 Aug 2024 13:11:55 +0530 Subject: [PATCH 1/2] Added workflow to run regression tests --- .github/workflows/run-cypress-tests.yml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/run-cypress-tests.yml diff --git a/.github/workflows/run-cypress-tests.yml b/.github/workflows/run-cypress-tests.yml new file mode 100644 index 000000000..58285ab57 --- /dev/null +++ b/.github/workflows/run-cypress-tests.yml @@ -0,0 +1,38 @@ +name: Trigger End-to-end Tests Workflow + +on: + workflow_dispatch: + inputs: + baseUrl: + description: 'Base URL to run tests against' + required: true + default: 'https://staging.cms.footlight.io/' + grep: + description: 'Grep pattern for selecting tests' + required: false + default: '' + grepTags: + description: 'Grep tags for selecting tests' + required: false + default: '@essential' + numContainers: + description: 'Number of containers to use for browsers' + required: false + default: '2' + +jobs: + trigger-tests: + runs-on: ubuntu-latest + steps: + - name: Trigger End-to-end Tests Workflow + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.PAT }} + event-type: trigger-end-to-end-tests + client-payload: | + { + "baseUrl": "${{ github.event.inputs.baseUrl }}", + "grep": "${{ github.event.inputs.grep }}", + "grepTags": "${{ github.event.inputs.grepTags }}", + "numContainers": "${{ github.event.inputs.numContainers }}" + } From 7c7dffa71a87c448fe82fb6da08d1c1083a16841 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 9 Aug 2024 13:30:04 +0530 Subject: [PATCH 2/2] Fixed the docker PAT --- .github/workflows/run-cypress-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-cypress-tests.yml b/.github/workflows/run-cypress-tests.yml index 58285ab57..a88035bc9 100644 --- a/.github/workflows/run-cypress-tests.yml +++ b/.github/workflows/run-cypress-tests.yml @@ -27,7 +27,7 @@ jobs: - name: Trigger End-to-end Tests Workflow uses: peter-evans/repository-dispatch@v3 with: - token: ${{ secrets.PAT }} + token: ${{ secrets.DOCKER_PAT }} event-type: trigger-end-to-end-tests client-payload: | {