Merge pull request #202 from unzerdev/CC-1768/open-banking #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: integration tests | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: integration tests | |
env: | |
UNZER_PAPI_TEST_PRIVATE_KEY_DEFAULT: ${{ secrets.PAPI_PRIVATE_KEY_DEFAULT }} | |
UNZER_PAPI_TEST_PRIVATE_KEY_ALTERNATIVE: ${{ secrets.PAPI_PRIVATE_KEY_ALTERNATIVE }} | |
UNZER_PAPI_TEST_PRIVATE_KEY_LEGACY: ${{ secrets.PAPI_PRIVATE_KEY_LEGACY }} | |
UNZER_APPLE_MERCHANT_ID_PATH: ${{ secrets.UNZER_APPLE_MERCHANT_ID_PATH }} | |
UNZER_APPLE_CA_CERTIFICATE_PATH: ${{ secrets.UNZER_APPLE_CA_CERTIFICATE_PATH }} | |
APPLE_PAY_MERCHANT_ID_CERT: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT }} | |
APPLE_PAY_MERCHANT_ID_CERT_COMBINED: ${{ secrets.APPLE_PAY_MERCHANT_ID_CERT_COMBINED }} | |
APPLE_PAY_MERCHANT_ID_KEY: ${{ secrets.APPLE_PAY_MERCHANT_ID_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
- name: Setup Apple Pay test certificate | |
run: mkdir certs | |
- run: echo "$APPLE_PAY_MERCHANT_ID_CERT" > certs/merchant_id.pem | |
- run: echo "$APPLE_PAY_MERCHANT_ID_CERT_COMBINED" > certs/apple-pay-cert.pem | |
- run: echo "$APPLE_PAY_MERCHANT_ID_KEY" > certs/merchant_id.key | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Run integration tests | |
run: php ./vendor/bin/phpunit test/integration |