This is a suggestion to update the version of Ubuntu generally used in the workflows from ubuntu-20.04 to ubuntu-22.04, given that ubuntu-latest is now equivalent to ubuntu-22.04 for all repositories.
Current situation
The example workflows generally run on ubuntu-20.04.
GitHub completed the migration of ubuntu-latest to ubuntu-22.04 on December 15, 2022. ubuntu-20.04 is still available.
Suggested change
Convert the example workflows which currently only run on ubuntu-20.04 to instead run on ubuntu-22.04.
Also update main.yml to run on ubuntu-22.04.
For consistency and clarity, change example-component-test.yml to run on ubuntu-22.04 instead of ubuntu-latest.
Change documents DEVELOPMENT.md and README.md to specify ubuntu-22.04 explicitly instead of ubuntu-latest.
The following two workflows run on both ubuntu-20.04 and ubuntu-22.04, so they should not be changed. They continue to ensure that both these currently supported GitHub Ubuntu runner environments are tested:
Benefits
Moving the default Ubuntu version in the example workflows to ubuntu-22.04, which now corresponds to ubuntu-latest, ensures that the different examples are pre-tested in this latest GitHub runner Ubuntu environment.
Specifying an explicit Ubuntu version instead of using ubuntu-latest makes it clearer exactly which version of Ubuntu is being tested. The migration of ubuntu-latest from ubuntu-20.04 to ubuntu-22.04 took space over a period of over two months, during which time ubuntu-latest was interpreted on an individual basis, meaning it was volatile over a significant period of time.
Note: ubuntu-18.04 is deprecated, is no longer used in this repository (see issue #648), and no longer needs to be considered here.
This is a suggestion to update the version of Ubuntu generally used in the workflows from
ubuntu-20.04toubuntu-22.04, given thatubuntu-latestis now equivalent toubuntu-22.04for all repositories.Current situation
The example workflows generally run on
ubuntu-20.04.GitHub completed the migration of ubuntu-latest to ubuntu-22.04 on December 15, 2022. ubuntu-20.04 is still available.
Suggested change
Convert the example workflows which currently only run on ubuntu-20.04 to instead run on ubuntu-22.04.
Also update main.yml to run on ubuntu-22.04.
For consistency and clarity, change example-component-test.yml to run on ubuntu-22.04 instead of
ubuntu-latest.Change documents DEVELOPMENT.md and README.md to specify ubuntu-22.04 explicitly instead of
ubuntu-latest.The following two workflows run on both ubuntu-20.04 and ubuntu-22.04, so they should not be changed. They continue to ensure that both these currently supported GitHub Ubuntu runner environments are tested:
Benefits
Moving the default Ubuntu version in the example workflows to ubuntu-22.04, which now corresponds to
ubuntu-latest, ensures that the different examples are pre-tested in this latest GitHub runner Ubuntu environment.Specifying an explicit Ubuntu version instead of using
ubuntu-latestmakes it clearer exactly which version of Ubuntu is being tested. The migration of ubuntu-latest fromubuntu-20.04toubuntu-22.04took space over a period of over two months, during which timeubuntu-latestwas interpreted on an individual basis, meaning it was volatile over a significant period of time.Note: ubuntu-18.04 is deprecated, is no longer used in this repository (see issue #648), and no longer needs to be considered here.