Migrate JS tests to jasmine-browser-runner (Fixes #40) #55
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: "CI" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
# NB: this workflow fails on Ubuntu 22.04 (AKA ubuntu-latest) because the | |
# browsers are installed from Ubuntu Snaps, and on 22.04 there's currently | |
# an issue where FF lacks access to auto-create a profile, so it hangs. | |
# However, 20.04 is long-term support (LTS) until 2025: https://wiki.ubuntu.com/Releases | |
steps: | |
- name: "Install framebuffer (xvfb), Firefox and Chromium" | |
run: | | |
sudo apt-get update | |
sudo apt-get install chromium-browser firefox xvfb | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: "Install JS dependencies" | |
run: npm ci | |
- name: "Run JS tests" | |
run: xvfb-run npm test |