Skip to content

Commit

Permalink
Add e2e for workshop (#14)
Browse files Browse the repository at this point in the history
* Update E2E

* Bump dependencies

---------

Co-authored-by: kwokhe <[email protected]>
  • Loading branch information
Kwok-he-Chu and kwokhe authored Oct 3, 2024
1 parent 4a85eb9 commit 21b753d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ on:
- LICENSE

jobs:
checkout:

adyen-step-by-step-integration-workshop:
runs-on: ubuntu-latest
steps:
- name: Checkout project
Expand All @@ -38,8 +37,8 @@ jobs:
- name: Build project with Gradle
run: ./gradlew build
- name: Build project image
run: docker build -t workshop:latest workshop
- name: Start workshop container
run: docker run --rm -d --name workshop -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 }} workshop:latest
run: docker build -t adyen-step-by-step-integration-workshop:latest .
- name: Start adyen-step-by-step-integration-workshop container
run: docker run --rm -d --name adyen-step-by-step-integration-workshop -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 }} adyen-step-by-step-integration-workshop:latest
- name: Run testing suite
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=advanced-checkout -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=workshop -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'org.springframework.boot' version '3.0.1'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.springframework.boot' version '3.3.4'
id 'io.spring.dependency-management' version '1.1.6'
id 'java'
}

Expand Down

0 comments on commit 21b753d

Please sign in to comment.