Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan goswami committed Aug 7, 2023
1 parent 683f5af commit 4a4e175
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/orca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ jobs:
CHROME_VERSION_STRING="114.0.5735.198-1"
wget "https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION_STRING}_amd64.deb"
sudo dpkg -i "google-chrome-stable_${CHROME_VERSION_STRING}_amd64.deb"
sudo ln -s google-chrome-stable /usr/local/share/chromium
sudo ln -sf google-chrome-stable /usr/bin/chromium
sudo ln -sf google-chrome-stable /usr/bin/google-chrome
CHROME_VERSION="$(google-chrome-stable --version)"
echo $CHROME_VERSION
CHROMIUM_VERSION="$(/usr/bin/chromium --version)"
echo $CHROMIUM_VERSION
- name: Before install
run: |
Expand Down
2 changes: 1 addition & 1 deletion bin/ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if [[ "$ORCA_ENABLE_NIGHTWATCH" == "TRUE" && "$ORCA_SUT_HAS_NIGHTWATCH_TESTS" &&
SERVER_PID=$!

# @todo could we set DRUPAL_TEST_CHROMEDRIVER_AUTOSTART instead of launching Chromedriver manually?
chromedriver --no-sandbox --disable-dev-shm-usage --disable-extensions --disable-gpu --headless --no-sandbox --port=4444 &
chromedriver --disable-dev-shm-usage --disable-extensions --disable-gpu --headless --no-sandbox --port=4444 &
CHROMEDRIVER_PID=$!

eval "yarn test:nightwatch \\
Expand Down
5 changes: 4 additions & 1 deletion bin/ci/self-test/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ if [[ "$ORCA_ENABLE_NIGHTWATCH" == "TRUE" && "$ORCA_SUT_HAS_NIGHTWATCH_TESTS" &&
cd "$ORCA_YARN_DIR" || exit
orca fixture:run-server &
SERVER_PID=$!
/usr/local/share/chromium --headless --disable-gpu &
CHROME_PID=$!

# @todo could we set DRUPAL_TEST_CHROMEDRIVER_AUTOSTART instead of launching Chromedriver manually?
chromedriver --disable-dev-shm-usage --disable-extensions --disable-gpu --headless --no-sandbox --port=4444 &
chromedriver --no-sandbox --disable-dev-shm-usage --disable-extensions --disable-gpu --headless --port=4444 &
CHROMEDRIVER_PID=$!

eval "yarn test:nightwatch \\
Expand All @@ -66,5 +68,6 @@ if [[ "$ORCA_ENABLE_NIGHTWATCH" == "TRUE" && "$ORCA_SUT_HAS_NIGHTWATCH_TESTS" &&

kill -0 $SERVER_PID
kill -0 $CHROMEDRIVER_PID
kill -0 CHROME_PID
)
fi

0 comments on commit 4a4e175

Please sign in to comment.