try fix: chrome options over capabilites #32
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: CI trunk | |
on: | |
push: | |
branches: | |
- trunk | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Chrome | |
uses: browser-actions/setup-chrome@latest | |
- name: Download and setup ChromeDriver | |
run: | | |
CHROME_VERSION=$(google-chrome-stable --version | cut -d ' ' -f3) && | |
CHROMEDRIVER_VERSION=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_VERSION") && | |
curl -LO "https://chromedriver.storage.googleapis.com/100.0.4896.60/chromedriver_linux64.zip" && | |
unzip chromedriver_linux64.zip && | |
sudo mv chromedriver /usr/local/bin/ && | |
sudo chmod +x /usr/local/bin/chromedriver | |
- name: Install server dependencies | |
run: npm ci | |
working-directory: server | |
- name: Run server tests | |
run: npm test | |
working-directory: server | |
env: | |
NODE_ENV: test | |
TEST_MONGODB_URI: ${{ secrets.TEST_MONGODB_URI }} | |
- name: Install client dependencies | |
run: npm ci | |
working-directory: client | |
# - name: Run client tests | |
# run: npm test | |
# working-directory: client |