Skip to content

Upgrade to Adyen Java library v25.1.0 #8

Upgrade to Adyen Java library v25.1.0

Upgrade to Adyen Java library v25.1.0 #8

name: E2E Subscription
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'subscription-example/**'
pull_request:
branches: [ main ]
paths:
- 'subscription-example/**'
jobs:
subscription:
runs-on: ubuntu-latest
steps:
- name: Subscription project
uses: actions/checkout@v3
- name: Setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x subscription-example/gradlew
- name: Build subscription-example with Gradle
run: cd subscription-example; ./gradlew build
- name: Build subscription-example image
run: docker build -t subscription-example:latest subscription-example
- name: Start subscription-example container
run: docker run --rm -d --name subscription-example -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 }} subscription-example:latest
- name: Run testing suite
run: docker run --rm --name adyen-testing-suite -e PLAYWRIGHT_FOLDERNAME=subscription -e ADYEN_HMAC_KEY=${{ secrets.ADYEN_HMAC_KEY }} --network host ghcr.io/adyen-examples/adyen-testing-suite:main