Skip to content

Update to Ubuntu 22.04 as standard #696

@MikeMcC399

Description

@MikeMcC399

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions