Skip to content

Commit

Permalink
Add workflow In-person Payments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwok He Chu committed Jan 3, 2024
1 parent ade0bc2 commit 8a56b19
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,17 @@ jobs:
run: docker run --rm -d --name giving-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 }} giving-example-image:latest
- name: Run testing suite against giving-example-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=giving --network host ghcr.io/adyen-examples/adyen-testing-suite:main

in-person-payments:
runs-on: ubuntu-latest
steps:
- name: In-person Payments project
uses: actions/checkout@v4
- name: Build in-person-payments-example image
run: docker build -t in-person-payments-example-image:latest in-person-payments-example
- name: Start in-person-payments-example container and use `http://localhost:3000` as the Terminal API Cloud endpoint
run: docker run --rm -d --name in-person-payments-example-image -p 8080:80 -e ADYEN_TERMINAL_API_CLOUD_ENDPOINT="http://localhost:3000" -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 }} in-person-payments-example-image:latest
- name: Start Adyen Mock Terminal API application on `http://localhost:3000`
run: docker run --rm -d --name adyen-mock-terminal-api -p 3000:3000 -e PORT=3000 --network host ghcr.io/adyen-examples/adyen-mock-terminal-api:main
- name: Run testing suite against in-person-payments-example-image
run: docker run --rm --name adyen-testing-suite -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} -e PLAYWRIGHT_FOLDERNAME=in-person-payments --network host ghcr.io/adyen-examples/adyen-testing-suite:main

0 comments on commit 8a56b19

Please sign in to comment.