Prevent usertracking null error when video container is not ready #35
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: Test admin interface frontend | |
on: | |
pull_request: | |
paths: | |
- 'docs/checkstyle/**' | |
- 'modules/admin-ui-frontend/**' | |
push: | |
paths: | |
- 'docs/checkstyle/**' | |
- 'modules/admin-ui-frontend/**' | |
jobs: | |
frontend: | |
strategy: | |
matrix: | |
browser: | |
- chrome | |
- firefox | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: use node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16.x | |
# Ubuntu 22.04 lies wrt to firefox in its repo | |
# the 'firefox' package is just a script which tells you to use snap | |
# This adds Mozilla's PPA, and installs it from there | |
- name: install firefox manually | |
run: | | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository -y ppa:mozillateam/ppa | |
echo -e 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' | sudo tee /etc/apt/preferences.d/mozilla-firefox | |
sudo apt-get install -y firefox | |
firefox --version | |
- name: install dependencies | |
run: | | |
cd modules/admin-ui-frontend | |
npm ci | |
./node_modules/.bin/bower install | |
- name: run front-end tests | |
run: | | |
cd modules/admin-ui-frontend | |
npm run test-${{ matrix.browser }} | |
npm run html-validate |