Skip to content
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

Merged
merged 7 commits into from
Jan 24, 2023
Merged

GitHub actions: update to current versions #847

merged 7 commits into from
Jan 24, 2023

Conversation

neteler
Copy link
Member

@neteler neteler commented Jan 18, 2023

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 CI: switch to ubuntu-22.04 image to avoid timeout 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

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
@neteler neteler added the CI Continuous integration label Jan 18, 2023
@neteler neteler self-assigned this Jan 18, 2023
neteler and others added 2 commits January 18, 2023 13:35
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
@neteler
Copy link
Member Author

neteler commented Jan 18, 2023

The Super-linter is yet unhappy, ideas?

2023-01-18 12:55:17 [INFO]   Gathering user validation information...
2023-01-18 12:55:17 [INFO]   - Validating ALL files in code base...
2023-01-18 12:55:17 [FATAL]   Behavior not supported, please either only include (VALIDATE=true) or exclude (VALIDATE=false) linters, but not both

@nilason
Copy link
Contributor

nilason commented Jan 18, 2023

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:

https://github.com/OSGeo/grass/blob/cb8293e8d40c02857b3a15bac441f703339ba5fd/.github/workflows/super-linter.yml#L22

@nilason
Copy link
Contributor

nilason commented Jan 18, 2023

Perhaps upgrading super-linter could be subject for a separate PR. The other changes looks good to me.

Copy link
Member

@echoix echoix left a 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.

.github/workflows/super-linter.yml Outdated Show resolved Hide resolved
@nilason
Copy link
Contributor

nilason commented Jan 18, 2023

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

Worth a try!

I don't think disabling Docker is still useful though, we do have some Dockerfiles.

In "addons"?

@echoix
Copy link
Member

echoix commented Jan 18, 2023

In "addons"?

Oh, I forgot that it was this repo.

neteler and others added 2 commits January 18, 2023 19:12
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
@neteler
Copy link
Member Author

neteler commented Jan 18, 2023

Thanks for your suggestions.
I have now commented out the entries set to false super-linter.yml (cb87c31).
If that fails, too, I'll go back to the original superlinter version (then updates may go into a separate PR).

@neteler
Copy link
Member Author

neteler commented Jan 18, 2023

So, if only the ones you want to run are the ones that are true currently true, we can comment out the false ones

Thanks @echoix, your super-linter.yml change suggestion worked!

Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

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

Nice!

neteler added a commit to neteler/grass that referenced this pull request Jan 23, 2023
Replaces OSGeo#2778

Selectively update `super-linter.yml` to GRASS GIS Addons PR OSGeo/grass-addons#847
neteler and others added 2 commits January 23, 2023 19:54
@neteler
Copy link
Member Author

neteler commented Jan 23, 2023

This now fails with markdown errors :D (so, the runner works).

@neteler neteler merged commit eb67fa0 into OSGeo:grass8 Jan 24, 2023
@neteler neteler deleted the gh_actions_update branch January 24, 2023 11:09
@nilason
Copy link
Contributor

nilason commented Jan 24, 2023

This now fails with markdown errors :D (so, the runner works).

I'm working on a linting fix for markdown files...

neteler added a commit to OSGeo/grass that referenced this pull request Jan 24, 2023
* 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>
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
* 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>
cwhite911 pushed a commit to cwhite911/grass-addons that referenced this pull request Sep 19, 2023
* 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>
neteler added a commit to nilason/grass that referenced this pull request Nov 7, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants