Skip to content

Add Drop-in v6

Add Drop-in v6 #80

Workflow file for this run

name: E2E Checkout
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'checkout-example/**'
pull_request:
branches: [ main ]
paths:
- 'checkout-example/**'
jobs:
# e2e testing with Adyen.Web Drop-in/Components v5
checkout-v5:
runs-on: ubuntu-latest
steps:
- name: Checkout checkout-example
uses: actions/checkout@v4
- name: Build checkout-example-v5 image
run: docker build -t checkout-example-v5:latest -f ./checkout-example/_archive/v5/Dockerfile ./checkout-example/_archive/v5
- name: Start checkout-example-v5 container
run: docker run --rm -d --name checkout-example-v5 -p 8080:8080 -e ADYEN_API_KEY="${{ secrets.ADYEN_API_KEY }}" -e ADYEN_MERCHANT_ACCOUNT=${{ secrets.ADYEN_MERCHANT_ACCOUNT }} -e ADYEN_CLIENT_KEY=${{ secrets.ADYEN_CLIENT_KEY }} -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} checkout-example-v5:latest
- name: Run testing suite against checkout-example-v5
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=checkout/v5 -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main
# e2e testing with Adyen.Web Drop-in/Components v6
checkout-v6:
runs-on: ubuntu-latest
steps:
- name: Checkout checkout-example
uses: actions/checkout@v4
- name: Build checkout-example image
run: docker build -t checkout-example-image:latest checkout-example
- name: Start checkout-example container
run: docker run --rm -d --name checkout-example-image -p 8080:8080 -e ADYEN_API_KEY="${{ secrets.ADYEN_API_KEY }}" -e ADYEN_MERCHANT_ACCOUNT=${{ secrets.ADYEN_MERCHANT_ACCOUNT }} -e ADYEN_CLIENT_KEY=${{ secrets.ADYEN_CLIENT_KEY }} -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} checkout-example-image:latest
- name: Run testing suite against checkout-example
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=checkout/v6 -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main