Switch back again to Nightwatch ~3 on the 1.0.x branch #119 #598
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:8080 | |
steps: | |
- name: Install Chrome | |
run: | | |
sudo apt install libu2f-udev | |
sudo apt-get install libappindicator1 fonts-liberation libgbm1 libgtk-3-0 xdg-utils | |
export CHROME_BIN=/usr/bin/google-chrome | |
CHROME_VERSION="120.0.6099.109-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 | |
rm google-chrome-stable_${CHROME_VERSION}_amd64.deb | |
- name: Install/Update Chrome Driver | |
run: | | |
CHROME_DRIVER_VERSION="114.0.5735.90"; | |
echo $CHROME_DRIVER_VERSION; | |
wget http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip | |
unzip chromedriver_linux64.zip | |
sudo chmod +x chromedriver | |
sudo mv -f chromedriver /usr/bin/ | |
rm chromedriver_linux64.zip | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Run Selenium Standalone server | |
run: | | |
wget https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.1.0/selenium-server-4.1.2.jar | |
java -jar selenium-server-4.1.2.jar -role node -hub http://localhost:4444 | |
- 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 |