From 83ba509d22f8f7677e4607b726077b2195daad45 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 4 Feb 2021 20:57:01 +0100 Subject: [PATCH] chore: reworking tests to use he cypress github-action instead --- .github/workflows/tugboat.yml | 12 ++++++++---- packages/e2e-test/src/cypress/integration/catalog.ts | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tugboat.yml b/.github/workflows/tugboat.yml index 6528e994c5..8478701957 100644 --- a/.github/workflows/tugboat.yml +++ b/.github/workflows/tugboat.yml @@ -110,11 +110,15 @@ jobs: console.log(result); return result.data.environment_url; - - name: echo tugboat preview url + - name: Cypress run + uses: cypress-io/github-action@v2 env: - BACKSTAGE_TEST_URL: ${{steps.get-status-env.outputs.result}} - run: yarn e2e-test cypress - + CYPRESS_baseUrl: ${{steps.get-status-env.outputs.result}} + with: + config-file: ./packages/e2e-test/src/cypress.json + browser: chrome + headless: true + - name: set status if: ${{ failure() }} uses: actions/github-script@v3 diff --git a/packages/e2e-test/src/cypress/integration/catalog.ts b/packages/e2e-test/src/cypress/integration/catalog.ts index 3518bac68d..31d39e7efd 100644 --- a/packages/e2e-test/src/cypress/integration/catalog.ts +++ b/packages/e2e-test/src/cypress/integration/catalog.ts @@ -13,6 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/// import 'os'; describe('Catalog', () => {