From 21b753d478c9d96e27ad974130475849d2dec3c8 Mon Sep 17 00:00:00 2001 From: Kwok He Chu <105217051+Kwok-he-Chu@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:27:19 +0200 Subject: [PATCH] Add e2e for workshop (#14) * Update E2E * Bump dependencies --------- Co-authored-by: kwokhe --- .github/workflows/e2e.yml | 11 +++++------ build.gradle | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5b95b3f..8116e15 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -20,8 +20,7 @@ on: - LICENSE jobs: - checkout: - + adyen-step-by-step-integration-workshop: runs-on: ubuntu-latest steps: - name: Checkout project @@ -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 diff --git a/build.gradle b/build.gradle index f87bf98..daa4a9c 100644 --- a/build.gradle +++ b/build.gradle @@ -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' }