-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
3 changed files
with
28 additions
and
24 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 |
---|---|---|
|
@@ -13,15 +13,6 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Set up Docker | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Modify and Show Docker Compose File | ||
run: | | ||
mkdir -p ./docker/doichain/db | ||
chmod 777 ./docker/doichain/db | ||
# Remove the specific volume line and save changes in place | ||
sed -i '/- \.\/\.doichain\/:\/home\/doichain\/\.doichain\//d' ./docker/doichain/docker-compose-regtest.yml | ||
# Display the modified file contents | ||
echo "📄 Displaying modified docker-compose-regtest.yml contents..." | ||
cat ./docker/doichain/docker-compose-regtest.yml | ||
- name: Set up Docker | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
|
@@ -30,14 +21,18 @@ jobs: | |
run: | | ||
echo "🔍 Checking Docker Containers..." | ||
docker compose -f "docker/doichain/docker-compose-regtest.yml" ps | ||
- name: Run Playwright tests | ||
run: | | ||
docker compose -f docker/doichain/docker-compose-regtest.yml --env-file ./docker/doichain/playwright-testing.env up -d | ||
- name: Modify Run Command and Run Playwright tests | ||
run: | | ||
sed -i.bak \ | ||
-e 's/^ # command: \["npx", "playwright", "test"\]/ command: \["npx", "playwright", "test"\]/' \ | ||
-e 's/^ command: \["echo", "finished building"\]/ # command: \["echo", "finished building"\]/' \ | ||
./docker/doichain/docker-compose-regtest.yml | ||
sed -i.bak \ | ||
-e '/build:/,+2d' \ | ||
./docker/doichain/docker-compose-regtest.yml | ||
cat ./docker/doichain/docker-compose-regtest.yml | ||
set -e docker compose -f "docker/doichain/docker-compose-regtest.yml" up playwright | ||
# sed -i.bak \ | ||
# -e 's/^ # command: \["npx", "playwright", "test"\]/ command: \["npx", "playwright", "test"\]/' \ | ||
# -e 's/^ command: \["echo", "finished building"\]/ # command: \["echo", "finished building"\]/' \ | ||
# ./docker/doichain/docker-compose-regtest.yml | ||
# sed -i.bak \ | ||
# -e '/build:/,+2d' \ | ||
# ./docker/doichain/docker-compose-regtest.yml | ||
# cat ./docker/doichain/docker-compose-regtest.yml | ||
# set -e # Exit immediately if a command exits with a non-zero status | ||
# docker compose -f "docker/doichain/docker-compose-regtest.yml" up playwright |
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,5 @@ | ||
DOICHAIN_DATA=doichain | ||
PLAYWRIGHT_COMMAND="npx playwright test" | ||
ELECTRUM_DB_VOLUME=db | ||
PLAYWRIGHT_BUILD_CONTEXT=none | ||
PLAYWRIGHT_DOCKERFILE=none |