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.

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

Comment thread run-js-linter.sh
$ESLINT -c .eslintrc.yml src/**/*.js --fix;;
*)
printf "Argument ${RED}$arg${NC} not supported\n"
exit;;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I haven't written bash for a while but doesn't this return the status of the last call? Shouldn't it be exit 1;; ?

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.

Yep it definitely should be! Will fix

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!

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.

3 participants