From 67cbf12d2879af08a5c7ba3c05c2b351e0a101fb Mon Sep 17 00:00:00 2001 From: Pedro Hyvo Date: Tue, 14 Dec 2021 11:47:45 -0500 Subject: [PATCH 1/3] Create main.yml --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ceaa0f2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: E2E on Chrome - Cypress Studio +on: [push] +jobs: + cypress-run: + runs-on: ubuntu-20.04 + # let's make sure our tests pass on Chrome browser + name: E2E on Chrome + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Cypress run + uses: cypress-io/github-action@v2 + with: + browser: chrome + record: true + group: Tests on Chrome + + # after the test run completes + # store videos and any screenshots + # NOTE: screenshots will be generated only if E2E test failed + # thus we store screenshots only on failures + # Alternative: create and commit an empty cypress/screenshots folder + # to always have something to upload + - uses: actions/upload-artifact@v2 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots + # Test run video was always captured, so this action uses "always()" condition + - uses: actions/upload-artifact@v2 + if: always() + with: + name: cypress-videos + path: cypress/videos From f0e481192dbbeee92116ae85efe05dd35b1ed579 Mon Sep 17 00:00:00 2001 From: Pedro Hyvo Date: Tue, 14 Dec 2021 11:50:17 -0500 Subject: [PATCH 2/3] Update working directory --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ceaa0f2..4936748 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: uses: cypress-io/github-action@v2 with: browser: chrome - record: true + working-directory: cypress-studio group: Tests on Chrome # after the test run completes From 4b2f96dfb5aebe4247bc01f9985a44ea47a87925 Mon Sep 17 00:00:00 2001 From: Pedro Hyvo Date: Tue, 14 Dec 2021 11:52:36 -0500 Subject: [PATCH 3/3] Update ci config --- .github/workflows/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4936748..c17e77e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,6 @@ jobs: with: browser: chrome working-directory: cypress-studio - group: Tests on Chrome # after the test run completes # store videos and any screenshots