Skip to content

Commit

Permalink
Fix Github Actions in webship-js #120
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaimaaNatshah committed Dec 25, 2023
1 parent 51b5a13 commit feb2f40
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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
Expand Down

0 comments on commit feb2f40

Please sign in to comment.