Update saferpayCheckouting.yml #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PS1786 + E2E Cypress | |
on: [push] | |
jobs: | |
Cypress-E2E-1786: | |
runs-on: ubuntu-latest | |
env: | |
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }} | |
steps: | |
- name: Checkouting | |
uses: actions/checkout@v2.4.2 | |
- run: wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
shell: bash | |
- run: unzip -qq -o ngrok-stable-linux-amd64.zip | |
shell: bash | |
- run: ./ngrok authtoken ${{ secrets.NGROK_TOKEN }} | |
shell: bash | |
- run: ./ngrok http --domain=jusvai.eu.ngrok.io 8002 > ngrok.log & | |
shell: bash | |
- name: Installing composer | |
run: composer i | |
- name: Installing NPM, NPX packages | |
run: npm ci & npx browserslist@latest --update-db | |
- 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 | |
env: | |
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 | |
with: | |
name: videos_screenshots | |
retention-days: 2 | |
path: | | |
cypress/videos | |
cypress/screenshots |