diff --git a/.github/workflows/selenium.yml b/.github/workflows/selenium.yml index 1bcb9a4f..abfd31a1 100644 --- a/.github/workflows/selenium.yml +++ b/.github/workflows/selenium.yml @@ -12,15 +12,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Install Chromium - run: sudo apt-get install chromium-browser + - uses: nanasess/setup-chromedriver@master + with: + chromedriver-version: '77.0.3865.40' - - uses: actions/checkout@v2 + - run: | + export DISPLAY=:99 + chromedriver --url-base=/wd/hub & + sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional + + - uses: actions/checkout@v1 - - uses: actions/setup-node@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} - - name: npm ci - run: npm ci - - - name: npm run wdio wdio-github.conf.js - run: npm run wdio wdio-github.conf.js + - name: npm install, build, and test + run: | + npm ci + npm run build --if-present + ./node_modules/.bin/wdio wdio-github.conf.js + env: + CI: true