Skip to content

ci: Update JS tooling

Florian Müllner requested to merge fmuellner/gnome-shell:update-js-ci into main

Quoting the main commit:

Provided we use the correct version of the SpiderMonkey shell, we
can perform checks using the same engine that is used by gjs.

However some engine features are opt-in, so the set of features enabled
by gjs and js91 may differ. The obvious option for avoiding this is
replacing js91 with gjs for tests.

For that reason the check-potfiles.js script has been ported to gjs
and a second (simpler) script to replace `js91 --compileonly` was
added. This work happened in a separate repository to make sharing
between different JS-based projects easier.

Update the CI image to pull in those scripts, as well as a recent
version of gjs.

This will also address the issue that `js91 --compileonly` does not
handle modules.

This supersedes !2090 (closed).

Merge request reports