From 0de42825117801371a094b45e30cf14910f673f8 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 31 Aug 2022 11:01:59 -0700 Subject: [PATCH] CI: Use ubuntu-22.04 rather than ubuntu-latest (ubuntu-20.04) Use ubuntu-22.04 for the CI tests rather than ubuntu-latest, which is currently ubuntu-20.04. --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/docker.yml | 2 +- .github/workflows/maintainers-man-completions.yml | 2 +- .github/workflows/spdx.yml | 2 +- .github/workflows/tests.yml | 12 ++++++------ .github/workflows/triage-issues.yml | 6 +++--- .github/workflows/triage.yml | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 371605a34f..0026c0d168 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -11,7 +11,7 @@ on: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: actions: read contents: read diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8bdfb1f8db..1d692b3838 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,7 +14,7 @@ permissions: jobs: ubuntu: if: startsWith(github.repository, 'Homebrew/') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: diff --git a/.github/workflows/maintainers-man-completions.yml b/.github/workflows/maintainers-man-completions.yml index b01c18bfc6..893f4dcb27 100644 --- a/.github/workflows/maintainers-man-completions.yml +++ b/.github/workflows/maintainers-man-completions.yml @@ -21,7 +21,7 @@ permissions: jobs: updates: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: github.repository == 'Homebrew/brew' steps: - name: Setup Homebrew diff --git a/.github/workflows/spdx.yml b/.github/workflows/spdx.yml index 57e004500e..444ca4d001 100644 --- a/.github/workflows/spdx.yml +++ b/.github/workflows/spdx.yml @@ -15,7 +15,7 @@ permissions: jobs: spdx: if: github.repository == 'Homebrew/brew' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Homebrew id: set-up-homebrew diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e4ce84ba35..4429640597 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,7 +20,7 @@ concurrency: jobs: syntax: if: github.repository == 'Homebrew/brew' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Homebrew id: set-up-homebrew @@ -52,7 +52,7 @@ jobs: name: tap syntax (Linux) needs: syntax if: startsWith(github.repository, 'Homebrew/') - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Homebrew id: set-up-homebrew @@ -146,7 +146,7 @@ jobs: vendored-gems: name: vendored gems (Linux) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Homebrew id: set-up-homebrew @@ -167,7 +167,7 @@ jobs: docker: needs: syntax - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Set up Homebrew id: set-up-homebrew @@ -191,7 +191,7 @@ jobs: tests: name: ${{ matrix.name }} needs: syntax - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: matrix: include: @@ -244,7 +244,7 @@ jobs: test-default-formula-linux: name: test default formula (Linux) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 env: HOMEBREW_BOOTSNAP: 1 steps: diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index 7963be2688..93b7411565 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -29,7 +29,7 @@ jobs: contains(github.event.pull_request.labels.*.name, 'stale') ) ) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Mark/Close Stale Issues and Pull Requests uses: actions/stale@v5 @@ -55,7 +55,7 @@ jobs: contains(github.event.pull_request.labels.*.name, 'stale') ) ) - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Mark/Close Stale `bump-formula-pr` and `bump-cask-pr` Pull Requests uses: actions/stale@v5 @@ -72,7 +72,7 @@ jobs: lock-threads: if: startsWith(github.repository, 'Homebrew/') && github.event_name != 'issue_comment' - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Lock Outdated Threads uses: dessant/lock-threads@e460dfeb36e731f3aeb214be6b0c9a9d9a67eda6 diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 2ef2939e34..1b21dbc19f 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -18,7 +18,7 @@ concurrency: triage-${{ github.head_ref }} jobs: review: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 if: startsWith(github.repository, 'Homebrew/') steps: - name: Re-run this workflow