fix: build error with type of xmldom #179
Workflow file for this run
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: Functional Tests | |
on: [pull_request] | |
jobs: | |
test: | |
env: | |
CI: 1 | |
DISPLAY: :99 | |
_FORCE_LOGS: 1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- run: | | |
export CHROME_VERSION=$(google-chrome --version | python -c "import sys, re; print(re.search(r'[0-9.]+', sys.stdin.read()).group(0))") | |
echo "Version number of the installed Chrome browser: $CHROME_VERSION" | |
export MAJOR_CHROME_VERSION=$(python -c "print('.'.join('$CHROME_VERSION'.split('.')[:-1]))") | |
echo "Major part of the version number: $MAJOR_CHROME_VERSION" | |
if grep -q "$MAJOR_CHROME_VERSION" config/mapping.json; then | |
export CHROMEDRIVER_VERSION=$(grep -m 1 -n "$MAJOR_CHROME_VERSION" config/mapping.json | cut -d' ' -f4 | tr -d ',"') | |
echo "Matching Chromedriver version: $CHROMEDRIVER_VERSION" | |
fi | |
npm install | |
name: Install dev dependencies | |
- run: | | |
sudo Xvfb -ac $DISPLAY -screen 0 1280x1024x24 > /dev/null 2>&1 & | |
npm run e2e-test | |
name: Run functional tests | |
windows_test: | |
env: | |
WIN_CD_VERSION: "88.0.4324.96" | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- run: npm install --chromedriver_version=${{ env.WIN_CD_VERSION }} |