-
Notifications
You must be signed in to change notification settings - Fork 44
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 #843 from mollie/e2efix2-6.0.x
E2Efix2 6.0.x
- Loading branch information
Showing
28 changed files
with
2,538 additions
and
2,647 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
FROM prestashop/prestashop:8.0.5-apache | ||
FROM prestashop/prestashop:8.1.2-apache | ||
|
||
RUN cd /usr/local/etc/php/conf.d/ && \ | ||
echo 'memory_limit = 4096M' >> /usr/local/etc/php/conf.d/docker-php-memlimit.ini | ||
|
||
RUN echo 'max_execution_time = 120' >> /usr/local/etc/php/conf.d/docker-php-maxexectime.ini | ||
|
||
HEALTHCHECK --interval=5m --timeout=3s \ | ||
CMD curl -f http://localhost/ || exit 1 | ||
|
||
|
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,32 @@ | ||
#!/bin/bash | ||
|
||
spinner() { | ||
local pid=$1 | ||
local delay=0.1 | ||
local spinstr='|/-\' | ||
while ps a | awk '{print $1}' | grep -q $pid; do | ||
local temp=${spinstr#?} | ||
printf " [%c] " "$spinstr" | ||
local spinstr=$temp${spinstr%"$temp"} | ||
sleep $delay | ||
printf "\b\b\b\b\b\b" | ||
done | ||
printf " \b\b\b\b" | ||
} | ||
|
||
# Function to display loader with a message | ||
show_loader() { | ||
local message=$1 | ||
shift | ||
echo -n "$message" | ||
( "$@" ) & | ||
local loader_pid=$! | ||
while ps a | awk '{print $1}' | grep -q $loader_pid; do | ||
sleep 0.5 | ||
echo -n "■" | ||
done | ||
echo " Done." | ||
} | ||
|
||
# Usage example | ||
show_loader "Building app containers. Please wait " sleep 60 |
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 |
---|---|---|
|
@@ -33,6 +33,7 @@ jobs: | |
TestRailID: R6470 | ||
env: | ||
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }} | ||
DB_PASSWD: ${{ secrets.DB_PASSWD }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -60,8 +61,18 @@ jobs: | |
- name: Waiting for Ngrok tunnel | ||
run: | | ||
URL="${{ matrix.url }}" | ||
TIMEOUT=120 | ||
start_time=$(date +%s) | ||
while true; do | ||
current_time=$(date +%s) | ||
elapsed_time=$((current_time - start_time)) | ||
if [ "$elapsed_time" -ge "$TIMEOUT" ]; then | ||
echo "Timeout reached. Ngrok tunnel is not ready within $TIMEOUT seconds." | ||
exit 1 | ||
fi | ||
response=$(curl -s -o /dev/null -w "%{http_code}" "$URL") | ||
if [ "$response" = "302" ]; then | ||
echo "URL is returning 302 HTTP status code, Ngrok tunnel is reached, good to go!" | ||
|
@@ -73,6 +84,7 @@ jobs: | |
fi | ||
done | ||
- name: Running ${{ matrix.prestashop }} Cypress E2E tests | ||
run: | | ||
export CYPRESS_baseUrl='${{ matrix.url }}' | ||
|
@@ -82,9 +94,10 @@ jobs: | |
export CYPRESS_TESTRAIL_DOMAIN='${{ secrets.TESTRAIL_DOMAIN }}' | ||
export CYPRESS_TESTRAIL_USERNAME='${{ secrets.TESTRAIL_USERNAME }}' | ||
export CYPRESS_TESTRAIL_PASSWORD='${{ secrets.TESTRAIL_PASSWORD }}' | ||
npx cypress cache prune | ||
npm install -D cypress | ||
npm ci | ||
npx cypress run --spec "${{ matrix.test_spec }}" --browser chrome | ||
npx cypress run --spec "${{ matrix.test_spec }}" | ||
- name: Archive videos and screenshots | ||
if: ${{ always() }} | ||
|
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 was deleted.
Oops, something went wrong.
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.