PowerShell / PSScriptAnalyzer

Download ScriptAnalyzer from PowerShellGallery
https://www.powershellgallery.com/packages/PSScriptAnalyzer/
MIT License
1.85k stars 373 forks source link

CI: Use new Ubuntu 22.04 image and remove deprecated Ubuntu 18.04 #1847

Closed bergmeister closed 1 year ago

bergmeister commented 2 years ago

PR Summary

See below where Ubuntu 18.04 has been deprecated and will soon be removed. Also there are new Ubuntu 22.04 and macOS 12 images where the latest tag hasn't been updated to point to them. Therefore explicitly adding Ubuntu 22.04, which is better going forward but keep using macos-latest due to their high release frequency. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted

PR Checklist

JamesWTruher commented 1 year ago

@bergmeister - it does mean that every time a new MacOS is supported (or deprecated) we'll need to update this.

bergmeister commented 1 year ago

Yes but I'd rather be explicit and due to them always offering at least 2 versions, we'd always have to update at least the older version, same for Ubuntu. Also, latest doesn't point to macos 12 but 11 atm so we couldn't use it otherwise atm. But if you'd rather trade less maintenance for less coverage then that's ok as well.