tools: use ubuntu-slim runner in GHA

PR-URL: https://github.com/nodejs/node/pull/61734
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
Antoine du Hamel committed 2026-02-22 23:16:22 +01:00
1 parent 65c77d74ff
commit f658f48ccb
16 files changed
+26 -23

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ jobs:
permissions:
pull-requests: read
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
outputs:
numbers: ${{ steps.get_prs_for_ci.outputs.numbers }}
steps:
@@ -43,7 +43,7 @@ jobs:
pull-requests: write
needs: get-prs-for-ci
if: needs.get-prs-for-ci.outputs.numbers != ''
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -39,7 +39,7 @@ permissions:
jobs:
build-tarball:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -31,7 +31,7 @@ jobs:
RELEASE_BRANCH: v${{ inputs.release-line }}.x
RELEASE_DATE: ${{ inputs.release-date }}
RELEASE_LINE: ${{ inputs.release-line }}
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -22,7 +22,7 @@ permissions:
jobs:
build-docs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
contents: write # for gr2m/create-or-update-pull-request-action to push local changes
pull-requests: write # for gr2m/create-or-update-pull-request-action to create a PR
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -18,7 +18,7 @@ permissions:
jobs:
lint-release-commit:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
permissions:
contents: read
pull-requests: read
+10 -9
View File
@@ -23,7 +23,7 @@ permissions:
jobs:
lint-addon-docs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -38,7 +38,7 @@ jobs:
run: NODE=$(command -v node) make lint-addon-docs
lint-cpp:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -53,7 +53,7 @@ jobs:
run: make lint-cpp
format-cpp:
if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }}
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -91,7 +91,7 @@ jobs:
fi
lint-js-and-md:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -140,7 +140,7 @@ jobs:
NODE_RELEASED_VERSIONS: ${{ steps.get-released-versions.outputs.NODE_RELEASED_VERSIONS }}
lint-py:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -167,7 +167,7 @@ jobs:
make lint-py
lint-yaml:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -191,7 +191,7 @@ jobs:
lint-sh:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -205,6 +205,7 @@ jobs:
run: tools/lint-sh.mjs .
lint-codeowners:
if: github.event.pull_request.draft == false
# cannot use ubuntu-slim here because mszostok/codeowners-validator is dockerized
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -215,7 +216,7 @@ jobs:
checks: files,duppatterns
lint-pr-url:
if: ${{ github.event.pull_request }}
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -228,7 +229,7 @@ jobs:
# GH Actions squashes all PR commits, HEAD^ refers to the base branch.
- run: git diff HEAD^ HEAD -G"pr-url:" -- "*.md" | ./tools/lint-pr-url.mjs ${{ github.event.pull_request.html_url }}
lint-readme:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -10,7 +10,7 @@ permissions:
jobs:
create-issue:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
permissions:
issues: write
steps:
@@ -12,6 +12,7 @@ jobs:
notifyOnReviewWanted:
name: Notify on Review Wanted
if: github.repository == 'nodejs/node' && github.event.label.name == 'review wanted'
# cannot use ubuntu-slim here because rtCamp/action-slack-notify is dockerized
runs-on: ubuntu-latest
steps:
- name: Determine PR or Issue
+1 -1
View File
@@ -16,7 +16,7 @@ permissions:
jobs:
post-release-actions:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- name: Trigger update-links workflow on nodejs/release-cloudflare-worker
run: |
+1
View File
@@ -21,6 +21,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecard analysis
# cannot use ubuntu-slim here because ossf/scorecard-action is dockerized
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
pull-requests: write # to create a PR (gr2m/create-or-update-pull-request-action)
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- name: Checkout nodejs/node
+1 -1
View File
@@ -51,7 +51,7 @@ permissions:
jobs:
tools-deps-update:
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
strategy:
fail-fast: false # Prevent other jobs from aborting if one fails
matrix:
+1 -1
View File
@@ -12,7 +12,7 @@ permissions:
jobs:
openssl-update:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -14,7 +14,7 @@ permissions:
jobs:
v8-update:
if: github.repository == 'nodejs/node'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
+1 -1
View File
@@ -20,7 +20,7 @@ env:
jobs:
wpt-subsystem-update:
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
runs-on: ubuntu-slim
strategy:
fail-fast: false
matrix: