diff --git a/.github/workflows/__cleanup-db-cluster-dir.yml b/.github/workflows/__cleanup-db-cluster-dir.yml index dfe53c67c..3383f4d43 100644 --- a/.github/workflows/__cleanup-db-cluster-dir.yml +++ b/.github/workflows/__cleanup-db-cluster-dir.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-latest + - os: ubuntu-slim version: linked name: Clean up database cluster directory if: github.triggering_actor != 'dependabot[bot]' diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index 59db10d4d..a6f2d2bcb 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-latest + - os: ubuntu-slim version: linked name: Config input if: github.triggering_actor != 'dependabot[bot]' diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index 5f95caa13..92c130dfa 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -36,7 +36,7 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-latest + - os: ubuntu-slim version: linked name: Language aliases if: github.triggering_actor != 'dependabot[bot]' diff --git a/.github/workflows/check-expected-release-files.yml b/.github/workflows/check-expected-release-files.yml index edcc499dc..a066cbde5 100644 --- a/.github/workflows/check-expected-release-files.yml +++ b/.github/workflows/check-expected-release-files.yml @@ -15,7 +15,7 @@ defaults: jobs: check-expected-release-files: - runs-on: ubuntu-latest + runs-on: ubuntu-slim permissions: contents: read diff --git a/.github/workflows/label-pr-size.yml b/.github/workflows/label-pr-size.yml index 83ec360f5..965a4a858 100644 --- a/.github/workflows/label-pr-size.yml +++ b/.github/workflows/label-pr-size.yml @@ -16,7 +16,7 @@ permissions: jobs: sizeup: name: Label PR with size - runs-on: ubuntu-latest + runs-on: ubuntu-slim steps: - name: Run sizeup diff --git a/pr-checks/checks/cleanup-db-cluster-dir.yml b/pr-checks/checks/cleanup-db-cluster-dir.yml index d2cacf47e..9cb3dfa05 100644 --- a/pr-checks/checks/cleanup-db-cluster-dir.yml +++ b/pr-checks/checks/cleanup-db-cluster-dir.yml @@ -1,6 +1,7 @@ name: "Clean up database cluster directory" description: "The database cluster directory is cleaned up if it is not empty." versions: ["linked"] +runnerImages: ["ubuntu-slim"] steps: - name: Add a file to the database cluster directory run: | diff --git a/pr-checks/checks/config-input.yml b/pr-checks/checks/config-input.yml index f139ff90e..7253e443e 100644 --- a/pr-checks/checks/config-input.yml +++ b/pr-checks/checks/config-input.yml @@ -2,6 +2,7 @@ name: "Config input" description: "Tests specifying configuration using the config input" installNode: true versions: ["linked"] +runnerImages: ["ubuntu-slim"] steps: - name: Copy queries into workspace run: | diff --git a/pr-checks/checks/language-aliases.yml b/pr-checks/checks/language-aliases.yml index b0db1288a..a5654fc88 100644 --- a/pr-checks/checks/language-aliases.yml +++ b/pr-checks/checks/language-aliases.yml @@ -1,6 +1,7 @@ name: "Language aliases" description: "Tests that language aliases are resolved correctly" versions: ["linked"] +runnerImages: ["ubuntu-slim"] steps: - uses: ./../action/init with: diff --git a/pr-checks/sync.py b/pr-checks/sync.py index f247f3824..f44ffb964 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -76,7 +76,15 @@ for file in sorted((this_dir / 'checks').glob('*.yml')): if version == "latest": raise ValueError('Did not recognize "version: latest". Did you mean "version: linked"?') - runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"] + # Check if a specific runner image is specified in the check + customRunnerImages = checkSpecification.get('runnerImages') + if customRunnerImages: + # Use custom runner images specified in the check + runnerImages = customRunnerImages + else: + # Use default runner images based on operating systems + runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"] + operatingSystems = checkSpecification.get('operatingSystems', ["ubuntu"]) for operatingSystem in operatingSystems: