Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update E2E tests for V5 Dropin #158

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@ on:
- LICENSE

jobs:
checkout:
checkout-v5:
runs-on: ubuntu-latest
steps:
- name: Checkout project
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:80 -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-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=checkout --network host ghcr.io/adyen-examples/adyen-testing-suite:main
- name: Build checkout-example-v5 image
run: docker build -t checkout-example-v5-image:latest checkout-example
- name: Start checkout-example-v5 container
run: docker run --rm -d --name checkout-example-v5-image -p 8080:80 -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-image:latest
- name: Run testing suite against checkout-example-v5-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=checkout/v5 --network host ghcr.io/adyen-examples/adyen-testing-suite:main

checkout-advanced:
checkout-advanced-v5:
runs-on: ubuntu-latest
steps:
- name: Checkout Advanced project
uses: actions/checkout@v4
- name: Build checkout-example-advanced image
run: docker build -t checkout-example-advanced-image:latest checkout-example-advanced
- name: Start checkout-example-advanced container
run: docker run --rm -d --name checkout-example-advanced-image -p 8080:80 -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-advanced-image:latest
- name: Run testing suite against checkout-example-advanced-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=advanced-checkout --network host ghcr.io/adyen-examples/adyen-testing-suite:main
- name: Build checkout-example-advanced-v5 image
run: docker build -t checkout-example-advanced-v5-image:latest checkout-example-advanced
- name: Start checkout-example-advanced-v5 container
run: docker run --rm -d --name checkout-example-advanced-v5-image -p 8080:80 -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-advanced-v5-image:latest
- name: Run testing suite against checkout-example-advanced-v5-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=advanced-checkout/v5 --network host ghcr.io/adyen-examples/adyen-testing-suite:main

subscription:
runs-on: ubuntu-latest
Expand Down
Loading