Skip to content

ci: migrate to shared workflows - #300

Merged
tmorrell merged 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/ci-migration
Nov 4, 2026
Merged

tmorrell merged 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/ci-migration

Conversation

@mirekys

@mirekys mirekys commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

  • Replaces js-tests with shared inveniosoftware/workflows
  • Updates Node test matrix to 22.x, 24.x, 26.x
  • Adds run-js-linter.sh and run-js-tests.sh scripts (expected by shared workflows actions)
  • Removes conflicting react-app lint rules
  • Updates Node requirement to >=22.0.0

Part of: inveniosoftware/rfcs#112

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.

@mirekys mirekys added this to v15 Apr 30, 2026
@mirekys mirekys mentioned this pull request May 5, 2026
8 of 10 tasks
@mirekys mirekys moved this to 🏗 In progress in v15 May 5, 2026
@mirekys mirekys self-assigned this May 6, 2026
Comment thread run-js-linter.sh Outdated
for arg in $@; do
case ${arg} in
-i|--install)
npm install;;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it run npm ci as before?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i'll change it to that

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we should add both: ci to be used in the GH action, but install locally in case you want to bump dependencies.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that -i flag here is just for the CI purposes, for local dev, you could always do npm install from root here, to update package-lock

Comment thread run-js-linter.sh Resolved

@ntarocco ntarocco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 Thanks!

@mirekys
mirekys force-pushed the mirekys/ci-migration branch from b902c75 to 0f313ec Compare May 13, 2026 11:14
uses: inveniosoftware/workflows/.github/workflows/tests-js.yml@master
with:
js-working-directory: ./
node-version: '["22.x", "24.x", "26.x"]'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we test with 3 nodejs versions? for python we use an upper and lower bound?

@OliverGeneser OliverGeneser May 13, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I think it makes sense to test every LTS version starting from our lower bound 22.x 🤔 Do you know the reason why it was chosen to only test upper and lower bound in the python modules?

@OliverGeneser OliverGeneser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment thread package.json
"search",
"react search"
],
"eslintConfig": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we are deleting this ESLint config?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it was kinda redundant with .eslintrc.yml already present here: https://github.com/oarepo/react-searchkit/blob/014bc1124937f840acfa43120677e0fabaf82eda/.eslintrc.yml

@fenekku fenekku moved this from 🏗 In progress to Discarded from this version ➡ in v15 Jul 30, 2026
* Replaces js-tests with shared inveniosoftware/workflows
* Updates Node test matrix to 22.x, 24.x, 26.x
* Adds run-js-linter.sh and run-js-tests.sh scripts
* Removes conflicting react-app lint rules
* Updates Node requirement to >=22.0.0
@mirekys
mirekys force-pushed the mirekys/ci-migration branch from 0f313ec to 7807777 Compare November 4, 2026 14:59
@tmorrell

tmorrell commented Nov 4, 2026

Copy link
Copy Markdown

Given the number of approvals and clear improvement I'm going to go ahead and merge. This shouldn't break anything, but help get ready for the react upgrade.

@tmorrell
tmorrell merged commit 4485e8b into inveniosoftware:master Nov 4, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Discarded from this version ➡ to To release 🤖 in v15 Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To release 🤖

Development

Successfully merging this pull request may close these issues.

6 participants