Skip to content

Commit

Permalink
[actions] [*] use ubuntu-22.04 instead of ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 16, 2024
1 parent 2fc3843 commit 6bc3910
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:

jobs:
matrix:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
Expand All @@ -35,7 +35,7 @@ jobs:
tests:
name: '${{ matrix.browser }} ${{ matrix.browser-version }}, on ${{ matrix.os }} ${{ matrix.os-version }}'
needs: [matrix]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -129,6 +129,6 @@ jobs:
browser:
name: 'Browser Tests (${{ inputs.browser }})'
needs: [tests]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: true
8 changes: 4 additions & 4 deletions .github/workflows/bun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ permissions: # added using https://github.com/step-security/secure-repo

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: ljharb/actions/bun/build@main
with:
Expand All @@ -56,7 +56,7 @@ jobs:

matrix:
needs: [build]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
latest: ${{ steps.set-matrix.outputs.requireds }}
nonlatest: ${{ steps.set-matrix.outputs.optionals }}
Expand All @@ -81,7 +81,7 @@ jobs:
bun-test:
needs: [matrix]
name: bun
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: ${{ inputs.continue-on-error }}
timeout-minutes: ${{ inputs.timeout-minutes }}
strategy:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
bun:
name: bun tests
needs: [bun-test]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
cache:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: true

strategy:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
commitMessage: "curl \"https://${{ matrix.kind }}.org/dist/index.tab\" (and .json)"

finisher:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [cache]

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-esm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions: # added using https://github.com/step-security/secure-repo
jobs:
notable-esm:
name: 'notable ESM minors'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
timeout-minutes: ${{ inputs.timeout-minutes }}

strategy:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
node:
name: 'node, notable ESM minors'
needs: [notable-esm]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/node-majors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ permissions: # added using https://github.com/step-security/secure-repo

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: ljharb/actions/node/build@main
with:
Expand All @@ -61,7 +61,7 @@ jobs:

matrix:
needs: [build]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
latest: ${{ steps.set-matrix.outputs.requireds }}
steps:
Expand All @@ -88,7 +88,7 @@ jobs:
latest:
needs: [matrix]
name: 'latest majors'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: ${{ inputs.continue-on-error }}
timeout-minutes: ${{ inputs.timeout-minutes }}

Expand Down Expand Up @@ -147,7 +147,7 @@ jobs:
node:
name: node majors
needs: [latest]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@v2
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ permissions: # added using https://github.com/step-security/secure-repo

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: ljharb/actions/node/build@main
with:
Expand All @@ -75,7 +75,7 @@ jobs:

matrix:
needs: [build]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
latest: ${{ steps.set-matrix.outputs.requireds }}
nonlatest: ${{ steps.set-matrix.outputs.optionals }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
latest:
needs: [matrix]
name: 'latest minors'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
continue-on-error: ${{ inputs.continue-on-error }}
timeout-minutes: ${{ inputs.timeout-minutes }}

Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
name: 'non-latest minors'
timeout-minutes: ${{ inputs.timeout-minutes }}
if: ${{ needs.matrix.outputs.nonlatest != '[]' && (!github.head_ref || !startsWith(github.head_ref, 'renovate')) }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

strategy:
fail-fast: false
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
node:
name: node ${{ inputs.type }} @ ${{ inputs.range }}
needs: [latest, nonlatest]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
if: ${{ inputs.coverage == 'coveralls' }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pretest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions: # added using https://github.com/step-security/secure-repo

jobs:
determine-node-version:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
node-version: ${{ steps.node-version.outputs.v }}
steps:
Expand All @@ -37,7 +37,7 @@ jobs:
shell: bash

pretest:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [determine-node-version]

steps:
Expand All @@ -63,7 +63,7 @@ jobs:
- run: npm run pretest

posttest:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [determine-node-version]

steps:
Expand All @@ -90,7 +90,7 @@ jobs:

engines:
if: ${{ ! inputs.skip-engines }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [determine-node-version]

steps:
Expand All @@ -100,7 +100,7 @@ jobs:

pack:
if: ${{ ! inputs.skip-pack }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [determine-node-version]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
_:
name: "Automatic Rebase"

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

permissions:
contents: write # for ljharb/rebase to push code to rebase
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
release:
if: github.event.repository.fork == false

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

permissions:
contents: write
Expand Down

0 comments on commit 6bc3910

Please sign in to comment.