-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub actions: update to current versions #847
Conversation
The GHA `ci.yml` and others show the warning _Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2, r-lib/actions/setup-r@v1, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/._ This PR - updates the various actions - syncs Python to v3.10
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
The Super-linter is yet unhappy, ideas?
|
Did a quick look at https://github.com/github/super-linter, but haven't been able to pinpoint exactly what needs to be changed yet. GRASS core is still using super-linter:v2.2.2: |
Perhaps upgrading super-linter could be subject for a separate PR. The other changes looks good to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the lines under,
VALIDATE_BASH: false
VALIDATE_CSS: false
VALIDATE_DOCKER: false
VALIDATE_JAVASCRIPT_ES: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSON: true
VALIDATE_MD: true
VALIDATE_PERL: false
VALIDATE_POWERSHELL: true
VALIDATE_XML: false
VALIDATE_YAML: true
If I remember well super-linter, once either one linter is enabled or disabled, it won't run all the linters by default. You must manually list all the ones you want activated if you include one VALIDATE_<a language>: true
.
Edit: see https://github.com/marketplace/actions/super-linter#environment-variables, which tells the same thing
So, if only the ones you want to run are the ones that are true currently true, we can comment out the false ones:
# VALIDATE_BASH: false
# VALIDATE_CSS: false
# VALIDATE_DOCKER: false
VALIDATE_JAVASCRIPT_ES: true
# VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSON: true
VALIDATE_MD: true
# VALIDATE_PERL: false
VALIDATE_POWERSHELL: true
# VALIDATE_XML: false
VALIDATE_YAML: true
I don't think disabling Docker is still useful though, we do have some Dockerfiles.
Worth a try!
In "addons"? |
Oh, I forgot that it was this repo. |
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
Thanks for your suggestions. |
Thanks @echoix, your super-linter.yml change suggestion worked! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Replaces OSGeo#2778 Selectively update `super-linter.yml` to GRASS GIS Addons PR OSGeo/grass-addons#847
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
This now fails with markdown errors :D (so, the runner works). |
I'm working on a linting fix for markdown files... |
* CI: update github/super-linter docker tag to v4 Replaces #2778 Selectively update `super-linter.yml` to GRASS GIS Addons PR OSGeo/grass-addons#847 * do not mix VALIDATE=true and VALIDATE=false * VALIDATE_MD -> VALIDATE_MARKDOWN Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
* CI: update github/super-linter docker tag to v4 Replaces OSGeo#2778 Selectively update `super-linter.yml` to GRASS GIS Addons PR OSGeo/grass-addons#847 * do not mix VALIDATE=true and VALIDATE=false * VALIDATE_MD -> VALIDATE_MARKDOWN Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
* GitHub actions: update to current versions The GHA `ci.yml` and others show the warning _Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2, r-lib/actions/setup-r@v1, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/._ Additionally: - update the various actions - updates ubuntu-20.04 to ubuntu-22.04 (see also OSGeo/grass#2730) - sync Python to v3.10 - updates to super-linter:v4 - super-linter: enable markdown linting - use the real super-linter action instead of a container - super-linter.yml: do not mix VALIDATE=true and VALIDATE=false Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com> Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
* CI: update github/super-linter docker tag to v4 Replaces OSGeo#2778 Selectively update `super-linter.yml` to GRASS GIS Addons PR OSGeo/grass-addons#847 * do not mix VALIDATE=true and VALIDATE=false * VALIDATE_MD -> VALIDATE_MARKDOWN Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
The GHA
ci.yml
and others show the warningNode.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2, r-lib/actions/setup-r@v1, actions/upload-artifact@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
Additionally: