Skip to content

CC-1315/add-linkpay #196

CC-1315/add-linkpay

CC-1315/add-linkpay #196

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Unit tests
on:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Set timezone
run: sudo timedatectl set-timezone Europe/Berlin
- name: Run unit tests
env:
UNZER_PUBLIC_KEY: ${{ secrets.UNZER_PUBLIC_KEY }}
UNZER_DEFAULT_PRIVATE_KEY: ${{ secrets.UNZER_DEFAULT_PRIVATE_KEY }}
UNZER_NO3DS_PRIVATE_KEY: ${{ secrets.UNZER_NO3DS_PRIVATE_KEY }}
UNZER_LEGACY_PRIVATE_KEY: ${{ secrets.UNZER_LEGACY_PRIVATE_KEY }}
UNZER_ALT_LEGACY_PRIVATE_KEY: ${{ secrets.UNZER_ALT_LEGACY_PRIVATE_KEY }}
run: |
mvn -B test --batch-mode --fail-at-end \
-DdefaultPublicKey="$UNZER_PUBLIC_KEY" \
-DdefaultPrivateKey="$UNZER_DEFAULT_PRIVATE_KEY" \
-Dno3dsPrivateKey="$UNZER_NO3DS_PRIVATE_KEY" \
-DlegacyPrivateKey="$UNZER_LEGACY_PRIVATE_KEY" \
-DaltLegacyPrivateKey="$UNZER_ALT_LEGACY_PRIVATE_KEY"
- name: Publish Test Report
if: success() || failure()
uses: scacap/action-surefire-report@v1.8.0