From 82194f2f1315021b67eabad1d6fa6be2b423b9aa Mon Sep 17 00:00:00 2001 From: conversaShawn Date: Fri, 18 Feb 2022 16:18:36 -0800 Subject: [PATCH 1/4] updating .yml --- .github/workflows/parallel.yml | 2 +- .github/workflows/single.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/parallel.yml b/.github/workflows/parallel.yml index 15394ad..2c8dd57 100644 --- a/.github/workflows/parallel.yml +++ b/.github/workflows/parallel.yml @@ -1,6 +1,6 @@ name: Parallel Cypress Tests -on: [push] +on: [push, pull_request] jobs: test: diff --git a/.github/workflows/single.yml b/.github/workflows/single.yml index 401592a..a914123 100644 --- a/.github/workflows/single.yml +++ b/.github/workflows/single.yml @@ -1,5 +1,5 @@ name: Cypress Tests -on: [push] +on: [push, pull_request] jobs: cypress-run: runs-on: ubuntu-latest From 336e1708eaa3ea562b626d6eaaec9e475ac4c96e Mon Sep 17 00:00:00 2001 From: conversaShawn Date: Sat, 5 Mar 2022 21:12:09 -0800 Subject: [PATCH 2/4] remove duplicate tag line 16 --- .github/workflows/single.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single.yml b/.github/workflows/single.yml index 70ac850..d86b5c6 100644 --- a/.github/workflows/single.yml +++ b/.github/workflows/single.yml @@ -14,7 +14,7 @@ jobs: uses: cypress-io/github-action@v2 with: record: true - tag: tag: pulledFromStatusChecksBranchSingleMachine + tag: pulledFromStatusChecksBranchSingleMachine env: # pass the Dashboard record key as an environment variable CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} From 83a799bb85e673f351afaccba87c738db2e8f579 Mon Sep 17 00:00:00 2001 From: conversaShawn Date: Sat, 5 Mar 2022 21:19:37 -0800 Subject: [PATCH 3/4] correcting job name --- .github/workflows/single.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single.yml b/.github/workflows/single.yml index d86b5c6..3685994 100644 --- a/.github/workflows/single.yml +++ b/.github/workflows/single.yml @@ -1,4 +1,4 @@ -name: Run Cypress Tests Based on Branch Conditional +name: Run Cypress Tests Based with Pull Request # run workflow on git push and git pull on: [push, pull_request] jobs: From 58504018fe9b44a19e4eb11090a2b7de449e3c4a Mon Sep 17 00:00:00 2001 From: conversaShawn Date: Mon, 4 Apr 2022 11:33:00 -0400 Subject: [PATCH 4/4] show Cypress bot when adding commit info message in Cypress Dashboard --- .github/workflows/parallel.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/parallel.yml b/.github/workflows/parallel.yml index fa95dc7..c4bb11d 100644 --- a/.github/workflows/parallel.yml +++ b/.github/workflows/parallel.yml @@ -6,9 +6,7 @@ jobs: # OS runs-on: ubuntu-latest strategy: - # when one test fails, DO NOT cancel the other - # containers, because this will kill Cypress processes - # leaving the Dashboard hanging ... + # when one test fails, DO NOT cancel the other containers, because this will kill Cypress processes leaving the Dashboard hanging ... # https://github.com/cypress-io/github-action/issues/48 fail-fast: false matrix: @@ -29,9 +27,10 @@ jobs: env: # pass the Dashboard record key as an environment variable CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - # Recommended: pass the GitHub token lets this action correctly - # determine the unique run id necessary to re-run the checks + # Recommended: pass the GitHub token lets this action correctly determine the unique run id necessary to re-run the checks GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # - if the event is push, the title will be undefined and Cypress will get the commit message from Git information # - if the event is pull_request, then we set the commit message to the pull request title - COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} \ No newline at end of file + COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }} + #This will allow Cypress bot to show in addition to status checks + COMMIT_INFO_SHA: ${{ github.event.pull_request.head.sha }} \ No newline at end of file