-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
66dc733
commit 1c2a7aa
Showing
4 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 1999-2024. WebPros International GmbH. | ||
name: test | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'latest/**' | ||
- 'tests/**' | ||
pull_request: | ||
paths: | ||
- 'latest/**' | ||
- 'tests/**' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: docker compose -f ./tests/docker-compose.yml run tests |
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,17 @@ | ||
# Copyright 1999-2024. WebPros International GmbH. | ||
services: | ||
tests: | ||
build: ../latest/ | ||
logging: | ||
driver: none | ||
ports: | ||
["8443:8443"] | ||
tmpfs: | ||
- /tmp | ||
- /run | ||
- /run/lock | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup | ||
- .:/opt/tests/ | ||
cgroup: host | ||
command: /opt/tests/wait-for-plesk.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,16 @@ | ||
#!/bin/bash | ||
### Copyright 1999-2024. WebPros International GmbH. | ||
|
||
COUNTER=1 | ||
|
||
while : ; do | ||
curl -ksL https://localhost:8443/ | grep "<title>Plesk" > /dev/null | ||
[ $? -eq 0 ] && exit 0 | ||
echo "($COUNTER) Waiting for the Plesk initialization..." | ||
sleep 5 | ||
COUNTER=$((COUNTER + 1)) | ||
if [ $COUNTER -eq 60 ]; then | ||
echo "Too long, interrupting..." | ||
exit 1 | ||
fi | ||
done |