Fix Github Actions in webship-js #120 #547
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
name: Github Actions | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TEST_BASE_URL: http://localhost:8000 | |
SELENIUM_HOST: http://selenium:4444/wd/hub | |
steps: | |
- 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 | |
- name: run selenium | |
run: java -jar selenium-server-4.1.2.jar standalone > /dev/null 2>&1 & | |
- name: Install | |
run: yarn install | |
- name: Configure nightwatch.conf.js for Github | |
run: node webship-init -ci github -os linux -b chrome | |
- name: Test | |
run: yarn test |