Set github-action examples to ubuntu-22.04 #5154
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aligns the Guides > Continuous Integration > Github Actions page with the repository hosting cypress-io/github-action. It consistently uses
ubuntu-22.04
as runner.The GitHub runner version
ubuntu-22.04
is used as default in the README file and examples of the action repository. This default is now carried over to the corresponding documentation page here in this repository.Previously the GitHub runner
ubuntu-20.04
for the corresponding LTS version, released in the year 2020, was being referred to, orubuntu-latest
.ubuntu-20.04
is older, so it makes more sense to useubuntu-22.04
which has a longer lifetime. According to The Ubuntu lifecycle and release cadence,ubuntu-22.04
will be fully supported for 5 years until April 2027.ubuntu-latest
is theoretically problematic because it puts any version switch-over into the hands of GitHub Operations. In general it seems better to specify concrete major versions in examples, rather thanlatest
. (The use oflatest
, to select thepnpm
version to install, broke workflows unexpectedly whenpnpm 8.0.0
was released this week, for instance!)