From b47b7fb7f96ee7550876f5aa3acfd180287bf793 Mon Sep 17 00:00:00 2001 From: Justas Vaitkus Date: Thu, 11 Jul 2024 21:53:54 +0300 Subject: [PATCH] fix --- .github/workflows/saferpayCheckouting.yml | 34 ++++++++++------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.github/workflows/saferpayCheckouting.yml b/.github/workflows/saferpayCheckouting.yml index 784bba74..12533bf8 100644 --- a/.github/workflows/saferpayCheckouting.yml +++ b/.github/workflows/saferpayCheckouting.yml @@ -8,20 +8,13 @@ jobs: env: NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }} strategy: - fail-fast: false - matrix: - containers: [1,2,3,4] + fail-fast: false + matrix: + containers: [1,2,3,4] steps: - name: Checkouting uses: actions/checkout@v2.4.2 - - name: Cypress Cloud GitHub - uses: cypress-io/github-action@v6 - with: - record: true - parallel: true - group: 'QAAutomationLabs' - - run: wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip shell: bash - run: unzip -qq -o ngrok-stable-linux-amd64.zip @@ -30,6 +23,7 @@ jobs: shell: bash - run: ./ngrok http --domain=jusvai.eu.ngrok.io 8002 > ngrok.log & shell: bash + - name: Installing composer run: composer i @@ -39,22 +33,24 @@ jobs: - name: PS1786 installing / Module Install and Uninstall testing... run: | make e2eh1786 - - - name: Testing with E2E Cypress on PS1786 - uses: cypress-io/github-action@v4.2.0 - with: - spec: | - cypress/e2e/moduleConfig.cy.js + + - name: Cypress E2E Tests + uses: cypress-io/github-action@v6 + with: + record: true + parallel: true + group: 'SaferpayTests' + spec: cypress/e2e/moduleConfig.cy.js env: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}cy.contains('a','Home').should('have.attr', 'href', '/home') + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CYPRESS_SAFERPAY_USERNAME_TEST: ${{ secrets.PS1786_SAFERPAY_USERNAME_TEST }} CYPRESS_SAFERPAY_PASSWORD_TEST: ${{ secrets.PS1786_SAFERPAY_PASSWORD_TEST }} CYPRESS_SAFERPAY_CUSTOMER_ID_TEST: ${{ secrets.PS1786_SAFERPAY_CUSTOMER_ID_TEST }} CYPRESS_SAFERPAY_TERMINAL_ID_TEST: ${{ secrets.PS1786_SAFERPAY_TERMINAL_ID_TEST }} CYPRESS_SAFERPAY_MERCHANT_EMAILS_TEST: ${{ secrets.SAFERPAY_MERCHANT_EMAILS_TEST }} CYPRESS_SAFERPAY_FIELDS_ACCESS_TOKEN_TEST: ${{ secrets.PS1786_SAFERPAY_FIELDS_ACCESS_TOKEN_TEST }} - + - name: Archive videos and screenshots of Cypress testing if: ${{ always() }} uses: actions/upload-artifact@v3.1.0 @@ -63,4 +59,4 @@ jobs: retention-days: 2 path: | cypress/videos - cypress/screenshots + cypress/screenshots \ No newline at end of file