Skip to content

ci: migrate to shared workflows#300

Open
mirekys wants to merge 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/ci-migration
Open

ci: migrate to shared workflows#300
mirekys wants to merge 1 commit into
inveniosoftware:masterfrom
oarepo:mirekys/ci-migration

Conversation

@mirekys
Copy link
Copy Markdown

@mirekys mirekys commented Apr 30, 2026

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 v14 Apr 30, 2026
@mirekys mirekys mentioned this pull request May 5, 2026
10 tasks
@mirekys mirekys moved this to 🏗 In progress in v14 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

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
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
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 Outdated
Copy link
Copy Markdown
Contributor

@ntarocco ntarocco left a comment

Choose a reason for hiding this comment

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

👍🏼 Thanks!

* 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 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?

Copy link
Copy Markdown

@OliverGeneser OliverGeneser May 13, 2026

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?

Copy link
Copy Markdown

@OliverGeneser OliverGeneser left a comment

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

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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

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

Labels

None yet

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

5 participants