-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2220 from Adyen/develop
Release 8.22.0
- Loading branch information
Showing
30 changed files
with
601 additions
and
433 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
# Checkout E2E tests | ||
cd /tmp; | ||
git clone https://github.com/Adyen/adyen-integration-tools-tests.git; | ||
cd adyen-integration-tools-tests; | ||
git checkout $INTEGRATION_TESTS_BRANCH; | ||
|
||
# Setup environment | ||
rm -rf package-lock.json; | ||
npm i; | ||
|
||
# Run tests | ||
npm run test:ci:magento:all |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Magento 2 Release E2E Pipeline | ||
run-name: E2E tests against Test Repository with Express Checkout | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: | ||
group: larger-runners | ||
labels: ubuntu-latest-8-cores | ||
timeout-minutes: 20 | ||
env: | ||
PHP_VERSION: "8.1" | ||
MAGENTO_VERSION: "2.4.5" | ||
ADMIN_USERNAME: ${{secrets.MAGENTO_ADMIN_USERNAME}} | ||
ADMIN_PASSWORD: ${{secrets.MAGENTO_ADMIN_PASSWORD}} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Magento | ||
run: docker-compose -f .github/workflows/templates/docker-compose.yml run --rm web make magento | ||
|
||
- name: Start web server in background | ||
run: docker-compose -f .github/workflows/templates/docker-compose.yml up -d web | ||
env: | ||
DONATION_ACCOUNT: ${{secrets.DONATION_ACCOUNT}} | ||
ADYEN_MERCHANT: ${{secrets.ADYEN_MERCHANT}} | ||
ADYEN_API_KEY: ${{secrets.ADYEN_API_KEY}} | ||
ADYEN_CLIENT_KEY: ${{secrets.ADYEN_CLIENT_KEY}} | ||
|
||
- name: Setup permissions | ||
run: docker exec magento2-container make fs | ||
|
||
- name: Check install | ||
run: docker exec magento2-container make sys-check | ||
|
||
- name: Install plugin | ||
run: docker exec -u www-data magento2-container make plugin | ||
|
||
- name: Install Express module | ||
run: docker exec -u www-data magento2-container composer require adyen/adyen-magento2-expresscheckout | ||
|
||
- name: Enable Express module | ||
run: docker exec -u www-data magento2-container make enable-express | ||
|
||
- name: Switch to production mode | ||
run: docker exec -u www-data magento2-container make production | ||
|
||
- name: Setup permissions | ||
run: docker exec magento2-container make fs | ||
|
||
- name: Run E2E tests | ||
run: docker-compose -f .github/workflows/templates/docker-compose.yml run --rm playwright /e2e-all.sh | ||
env: | ||
INTEGRATION_TESTS_BRANCH: develop | ||
MAGENTO_ADMIN_USERNAME: ${{secrets.MAGENTO_ADMIN_USERNAME}} | ||
MAGENTO_ADMIN_PASSWORD: ${{secrets.MAGENTO_ADMIN_PASSWORD}} | ||
MAGENTO_BASE_URL: ${{secrets.MAGENTO_BASE_URL}} | ||
PAYPAL_USERNAME: ${{secrets.PLAYWRIGHT_PAYPAL_USERNAME}} | ||
PAYPAL_PASSWORD: ${{secrets.PLAYWRIGHT_PAYPAL_PASSWORD}} | ||
ADYEN_API_KEY: ${{secrets.ADYEN_API_KEY}} | ||
ADYEN_CLIENT_KEY: ${{secrets.ADYEN_CLIENT_KEY}} | ||
ADYEN_MERCHANT: ${{secrets.ADYEN_MERCHANT}} | ||
GOOGLE_USERNAME: ${{secrets.GOOGLE_USERNAME}} | ||
GOOGLE_PASSWORD: ${{secrets.GOOGLE_PASSWORD}} | ||
WEBHOOK_USERNAME: ${{secrets.WEBHOOK_USERNAME}} | ||
WEBHOOK_PASSWORD: ${{secrets.WEBHOOK_PASSWORD}} | ||
|
||
- name: Archive test result artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: html-report | ||
path: test-report |
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
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
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
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
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
Oops, something went wrong.