From feb2f400587d6e4381bd9d6851f35e8a5ded9fe9 Mon Sep 17 00:00:00 2001 From: Shaimaa Natshah Date: Mon, 25 Dec 2023 17:55:59 +0300 Subject: [PATCH] Fix Github Actions in webship-js #120 --- .github/workflows/github-actions.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index b18de78..0945dbc 100755 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -8,17 +8,20 @@ jobs: runs-on: ubuntu-latest env: - TEST_BASE_URL: http://localhost:8000 + TEST_BASE_URL: http://localhost:8080 SELENIUM_HOST: http://selenium:4444/wd/hub steps: - - uses: actions/checkout@v2 - - run: echo "Running the tests" - - run: echo "The ${{ github.repository }} repository has been cloned to the runner." - - uses: nanasess/setup-chromedriver@v1.0.7 - - run: | - export DISPLAY=:99 - sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & + - name: Install Chrome + run: | + CHROME_VERSION="117.0.5938.88-1" + wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb + sudo dpkg -i google-chrome-stable_${CHROME_VERSION}_amd64.deb + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '18.x' - name: install selenium run: wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.2.jar