-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
first e2e commit #444
Closed
Closed
first e2e commit #444
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e6484ad
first e2e commit
ervinpresta 0112e6b
add CI Workflow for e2e back testing
ervinpresta 8446ffb
add CI Workflow for e2e back testing
ervinpresta d15e41e
feat: split ci steps & display logs on error (#443)
hschoenenberger 53eeda8
[ACCOUNT-2723] fix: readonly bo login flag (#435)
hschoenenberger a712333
[ACCOUNT-2710] feat: add log level parameter (#437)
hschoenenberger 424c130
add on > pull_request in e2e ci workflow
ervinpresta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,46 @@ | ||
name: account | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-test: | ||
name: Run Account back tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 1 | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: 'actions/checkout@v4' | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'node' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
|
||
- name: Install dependencies | ||
run: | | ||
npm ci | ||
|
||
- name: Run Dashboard Tests | ||
run: npm run test-all-version | ||
continue-on-error: true | ||
|
||
- name: Upload Playwright Test Reports | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: playwright-report-account-back testing | ||
path: playwright-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
######################################################### | ||
CI=false | ||
# Infrastructure dependencies | ||
DOCKER_IMAGE_PRESTASHOP=prestashop/prestashop-flashlight | ||
PS_VERSION==8.1.1-8.1-fpm-alpine | ||
#PS_VERSION==8.0.5-8.1-fpm-alpine | ||
#PS_VERSION==1.7.7.8-7.2-fpm-alpine | ||
#PS_VERSION=1.7.8.11-7.2-fpm-alpine | ||
DOCKER_VERSION_MARIADB=lts | ||
HOST_PORT_BIND_PHP_MY_ADMIN=3006 | ||
PS_DOMAIN=prestashop.xxxxx-xxxxxx-mytun.prestashop.name | ||
# Modules dependencies | ||
PS_ACCOUNTS_VERSION=v6.3.2 | ||
#PS_ACCOUNTS_VERSION=v5.6.2 | ||
PS_SHIPPING_VERSION=module-v1.0.5 | ||
PS_SHIPPING_TAG=v1.0.5 | ||
PS_EVENTBUS_VERSION=v3.0.8 | ||
# Authentication | ||
DOWNLOADER_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
## myTun Credentials | ||
ACCOUNT_TAG=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
TUNNEL_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | ||
TUNNEL_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
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,10 @@ | ||
help: ## Show this help message | ||
@echo "Usage: make [target]" | ||
@echo "" | ||
@echo "Available targets:" | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}' | ||
.PHONY: help | ||
|
||
docker-build: ## Build 8.0.x docker env | ||
PS_VERSION=${PS_VERSION} PS_DOMAIN=${PS_DOMAIN} PS_ACCOUNTS_VERSION=${PS_ACCOUNTS_VERSION} docker compose up --build --force-recreate -d | ||
.PHONY: docker-build |
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,81 @@ | ||
services: | ||
mysql: | ||
restart: unless-stopped | ||
image: mariadb:lts | ||
environment: | ||
TZ: Europe/Paris | ||
MYSQL_HOST: mysql | ||
MYSQL_USER: prestashop | ||
MYSQL_PASSWORD: prestashop | ||
MYSQL_ROOT_PASSWORD: prestashop | ||
MYSQL_PORT: 3306 | ||
MYSQL_DATABASE: prestashop | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD", | ||
"healthcheck.sh", | ||
"--connect", | ||
] | ||
interval: 5s | ||
timeout: 10s | ||
retries: 5 | ||
ports: | ||
- "${DB_BIND_PORT}:3306" | ||
|
||
prestashop: | ||
restart: unless-stopped | ||
image: prestashop/prestashop-flashlight:${PS_VERSION} | ||
env_file: .env | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
environment: | ||
ADMIN_MAIL: "ervin.klicic@prestashop.com" | ||
ADMIN_PASSWD: "prestashop" | ||
PS_DOMAIN: ${PS_DOMAIN} | ||
SSL_REDIRECT: true | ||
volumes: | ||
- ./init-scripts:/tmp/init-scripts:ro | ||
ports: | ||
- "8000:80" | ||
|
||
phpmyadmin: | ||
image: phpmyadmin:latest | ||
depends_on: | ||
mysql: | ||
condition: service_healthy | ||
ports: | ||
- ${HOST_PORT_BIND_PHP_MY_ADMIN:?See e2e-env/.env.dist}:80 | ||
environment: | ||
- PMA_HOST=mysql | ||
- PMA_PORT=3306 | ||
- PMA_USER=prestashop | ||
- PMA_PASSWORD=prestashop | ||
- MYSQL_ROOT_PASSWORD=prestashop | ||
|
||
mytun-config: | ||
restart: 'no' | ||
extends: | ||
file: ./myTun/docker-compose.yml | ||
service: config-generator | ||
environment: | ||
ACCOUNT_TAG: ${ACCOUNT_TAG} | ||
TUNNEL_SECRET: ${TUNNEL_SECRET} | ||
TUNNEL_ID: ${TUNNEL_ID} | ||
PS_DOMAIN: ${PS_DOMAIN} | ||
|
||
mytun: | ||
restart: always | ||
image: cloudflare/cloudflared:latest | ||
command: tunnel --config /config.yml run | ||
depends_on: | ||
mytun-config: | ||
condition: service_completed_successfully | ||
volumes: | ||
- ./myTun/config/mytun-config.yml:/config.yml | ||
- ./myTun/config/mytun-credentials.json:/credentials.json | ||
|
||
volumes: | ||
modules: | ||
driver: local |
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/sh | ||
set -eu | ||
cd "$(dirname $0)" || exit 1 | ||
|
||
# Download and install the module's zip | ||
GITHUB_REPOSITORY="PrestaShopCorp/ps_accounts" | ||
TARGET_ASSET="ps_accounts_preprod-${PS_ACCOUNTS_VERSION#v}.zip" | ||
TARGET_VERSION=${PS_ACCOUNTS_VERSION} | ||
echo "* [ps_accounts] downloading..." | ||
wget -q -O /tmp/ps_accounts.zip "https://github.com/${GITHUB_REPOSITORY}/releases/download/${TARGET_VERSION}/${TARGET_ASSET}" | ||
echo "* [ps_accounts] unziping..." | ||
unzip -qq /tmp/ps_accounts.zip -d /var/www/html/modules | ||
echo "* [ps_accounts] installing the module..." | ||
cd "$PS_FOLDER" | ||
php -d memory_limit=-1 bin/console prestashop:module --no-interaction install "ps_accounts" |
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,10 @@ | ||
FROM alpine:latest | ||
|
||
# Créer le répertoire de configuration | ||
RUN mkdir -p /config | ||
|
||
ADD scripts/generateConfigFiles.sh / | ||
WORKDIR / | ||
|
||
ENTRYPOINT [ "sh" ] | ||
CMD ["/generateConfigFiles.sh"] |
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,8 @@ | ||
tunnel: "c7cd4e87-4774-4175-accc-9af09cdfb0ee" | ||
credentials-file: /credentials.json | ||
ingress: | ||
- hostname: "1730191128.ervin-klicic-mytun.prestashop.name" | ||
service: http://prestashop:80 | ||
originRequest: | ||
httpHostHeader: "1730191128.ervin-klicic-mytun.prestashop.name" | ||
- service: http_status:404 |
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,5 @@ | ||
{ | ||
"AccountTag": "2b9cd321b1d6b45468e267f416aa9537", | ||
"TunnelSecret": "U2F0LCAyMyBNYXIgMjAyNCAwNToxMjoyOSBHTVQ=", | ||
"TunnelID": "c7cd4e87-4774-4175-accc-9af09cdfb0ee" | ||
} |
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,13 @@ | ||
--- | ||
services: | ||
config-generator: | ||
build: | ||
context: . | ||
dockerfile: ./config-generator.Dockerfile | ||
volumes: | ||
- ./config:/config:rw | ||
environment: | ||
ACCOUNT_TAG: ${ACCOUNT_TAG} | ||
TUNNEL_SECRET: ${TUNNEL_SECRET} | ||
TUNNEL_ID: ${TUNNEL_ID} | ||
PS_DOMAIN: ${PS_DOMAIN} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / SonarCloud
Prefer COPY over ADD for copying local resources Low