Skip to content

Commit

Permalink
Add e2e tests to the same repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
brankologeecom committed Dec 19, 2024
1 parent fd159af commit 21c13fd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
- name: Run E2E Tests
run: docker compose -f .github/workflows/templates/docker-compose.playwright.yml run --rm playwright /e2e.sh
env:
INTEGRATION_TESTS_BRANCH: develop
SHOPWARE_BASE_URL: ${{secrets.SHOPWARE_BASE_URL}}
PAYPAL_USERNAME: ${{secrets.PLAYWRIGHT_PAYPAL_USERNAME}}
PAYPAL_PASSWORD: ${{secrets.PLAYWRIGHT_PAYPAL_PASSWORD}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"dependencies": {
"dotenv": "^16.3.1"
}
}
}
5 changes: 1 addition & 4 deletions .github/workflows/scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
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;
cd /tmp/adyen-integration-tools-tests;

# Setup environment
rm -rf package-lock.json;
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/templates/docker-compose.playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ services:
cap_add:
- SYS_ADMIN
environment:
- INTEGRATION_TESTS_BRANCH
- SHOPWARE_BASE_URL
- PAYPAL_USERNAME
- PAYPAL_PASSWORD
volumes:
- ../scripts/e2e.sh:/e2e.sh
#- ../e2e/:/tmp/
- ../e2e/adyen-integration-tools-tests/:/tmp/adyen-integration-tools-tests/
- ../../../test-report:/tmp/test-report

networks:
Expand Down

0 comments on commit 21c13fd

Please sign in to comment.