Skip to content

feat(tests-js): support custom run-js-tests.sh script#26

Open
mirekys wants to merge 1 commit intoinveniosoftware:masterfrom
oarepo:mirekys/add-run-js-tests-script
Open

feat(tests-js): support custom run-js-tests.sh script#26
mirekys wants to merge 1 commit intoinveniosoftware:masterfrom
oarepo:mirekys/add-run-js-tests-script

Conversation

@mirekys
Copy link
Copy Markdown

@mirekys mirekys commented Apr 15, 2026

Summary

Adds support for testing repositories that provide a run-js-tests.sh script for JavaScript test execution. Falls back to npm test if the script is not present, maintaining backward compatibility.

Changes

  • Attempts to execute ${{ github.workspace }}/run-js-tests.sh
  • Falls back to npm test with warning if script not found
  • Passes WORKING_DIR and CI environment variables to the script

Implementation of Phase0 of RFC: inveniosoftware/rfcs#112

Related PRs

The following repositories need to add run-js-tests.sh to use this:

Core modules

UI modules

  • invenio-search-ui
  • invenio-theme
  • invenio-previewer
  • invenio-userprofiles

React libraries

  • react-invenio-app-ils
  • react-invenio-forms
  • react-searchkit

Other modules with JS

  • invenio-accounts
  • invenio-vocabularies
  • invenio-checks
  • invenio-collections
  • invenio-banners

* Adds support for consuming repositories to provide run-js-tests.sh script at repo root
* Falls back to npm test if script not present, maintaining backward
  compatibility
* Passes WORKING_DIR and CI environment variables to the script
* Addresses RFC 112 for react upgrade
@mirekys
Copy link
Copy Markdown
Author

mirekys commented Apr 15, 2026

@utnapischtim It seems i don't have perms to set this to project v14, could you please have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant