From 7a1fd225afc94e86dca39eb2092e43adcc5edd02 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 30 Dec 2024 13:32:43 +0000 Subject: [PATCH] Use explicit github runner versions during testing To avoid accidents, we mention the exact --- .github/workflows/check-dist.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/test.yml | 14 +++++++++----- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index b535e5f..b9fe47e 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -26,7 +26,7 @@ concurrency: jobs: check-dist: name: Check dist/ - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: read diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c135c5..fa2a19d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ concurrency: jobs: test-typescript: name: TypeScript Tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 11a647c..a99f19f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,7 +17,7 @@ concurrency: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: actions: read diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f441da..f4940eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ concurrency: jobs: build: # make sure build/ci work properly - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - run: | @@ -25,9 +25,13 @@ jobs: fail-fast: false matrix: os: - - macos-latest - - ubuntu-latest - - windows-latest + # Do not use latest as we have zero control regarding when it does + # change. OK to add multiple versions of the same OS when needed, + # especially as new ones are added rarely. + # https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for--private-repositories + - macos-15 + - ubuntu-24.04 + - windows-2022 runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 @@ -46,7 +50,7 @@ jobs: - run: . scripts/test.sh shell: bash specific_version: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 - name: Setup mise