Skip to content

Comments

GitHub actions: update to current versions#847

Merged
neteler merged 7 commits intoOSGeo:grass8from
neteler:gh_actions_update
Jan 24, 2023
Merged

GitHub actions: update to current versions#847
neteler merged 7 commits intoOSGeo:grass8from
neteler:gh_actions_update

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 <[email protected]>
Co-authored-by: Nicklas Larsson <[email protected]>
@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

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

@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
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 neteler requested review from nilason and wenzeslaus January 18, 2023 19:33
@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
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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
Co-authored-by: Edouard Choinière <[email protected]>
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 <[email protected]>
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.

3 participants