Skip to content

Commit

Permalink
[repo] Pin Ubuntu to 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek committed Dec 17, 2024
1 parent 1ca0568 commit 202b3cb
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Component.BuildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
required: false
type: string
os-list:
default: '[ "windows-latest", "ubuntu-latest" ]'
default: '[ "windows-latest", "ubuntu-22.04" ]'
required: false
type: string
tfm-list:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
os: ${{ fromJSON(inputs.os-list) }}
version: ${{ fromJSON(inputs.tfm-list) }}
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
version: net462
- os: macos-latest
version: net462
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/add-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
add-labels-on-issues:
if: github.event_name == 'issues' && !github.event.issue.pull_request

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand All @@ -36,7 +36,7 @@ jobs:
add-labels-on-pull-requests:
if: github.event_name == 'pull_request_target'

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/assign-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
assign:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Assign Reviewers
steps:
- uses: dyladan/component-owners@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
resolve-automation:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

outputs:
enabled: ${{ steps.evaluate.outputs.enabled }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-Exporter.OneCollector-Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
${{ github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository &&
'external' || 'internal' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: echo ✓

Expand All @@ -28,10 +28,10 @@ jobs:
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
os: [ windows-latest, ubuntu-latest ]
os: [ windows-latest, ubuntu-22.04 ]
version: [ net462, net8.0 ]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
version: net462

runs-on: ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ jobs:
with:
project-name: Component[OpenTelemetry.Resources.Host]
code-cov-name: Resources.Host
os-list: '[ "windows-latest", "ubuntu-latest", "macos-latest" ]'
os-list: '[ "windows-latest", "ubuntu-22.04", "macos-latest" ]'

build-test-resources-operatingsystem:
needs: detect-changes
Expand All @@ -491,7 +491,7 @@ jobs:
with:
project-name: Component[OpenTelemetry.Resources.OperatingSystem]
code-cov-name: Resources.OperatingSystem
os-list: '[ "windows-latest", "ubuntu-latest", "macos-latest" ]'
os-list: '[ "windows-latest", "ubuntu-22.04", "macos-latest" ]'

build-test-resources-process:
needs: detect-changes
Expand Down Expand Up @@ -628,7 +628,7 @@ jobs:
verify-aot-compat
]
if: always() && !cancelled()
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: |
if ( ${{ contains(needs.*.result, 'failure') }} == true ); then echo 'build failed ✗'; exit 1; else echo 'build complete ✓'; fi
2 changes: 1 addition & 1 deletion .github/workflows/core-version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
secrets: inherit

core-version-update:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
redis-integration-test:
if: inputs.job == 'all' || inputs.job == 'redis-integration-test'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -23,7 +23,7 @@ jobs:

kafka-integration-test:
if: inputs.job == 'all' || inputs.job == 'kafka-integration-test'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
run-markdownlint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
secrets: inherit

post-release:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs:
- automation
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
secrets: inherit

prepare-release-pr:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
-gitUserEmail '${{ needs.automation.outputs.email }}'
lock-pr-and-post-notice-to-create-release-tag:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
-botUserName '${{ needs.automation.outputs.username }}'
create-release-tag-unlock-pr-post-notice:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down Expand Up @@ -181,7 +181,7 @@ jobs:
-gitUserEmail '${{ needs.automation.outputs.email }}'
update-changelog-release-dates-on-prepare-pr-post-notice:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
-gitUserEmail '${{ needs.automation.outputs.email }}'
process-release-request-issue:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs: automation

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
nuget push src\**\*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} -SymbolApiKey ${{ secrets.NUGET_TOKEN }}
post-build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

needs:
- automation
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sanitycheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
run-misspell:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand All @@ -20,7 +20,7 @@ jobs:
run: ./bin/misspell -error .

run-sanitycheck:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/stale@v9
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/verifyaotcompat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
os: [ ubuntu-latest, windows-latest ]
os: [ ubuntu-22.04, windows-latest ]
version: [ net8.0, net9.0 ]

runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
run-yamllint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: check out code
Expand Down

0 comments on commit 202b3cb

Please sign in to comment.