Skip to content

Commit

Permalink
CLI-894: Pin GitHub actions ubuntu versions (#1274)
Browse files Browse the repository at this point in the history
* CLI-894: Pin GitHub actions ubuntu versions

* speed up windows tests
  • Loading branch information
danepowell authored Dec 13, 2022
1 parent e69a000 commit 998f1c6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- "CI"
jobs:
merge:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
Expand All @@ -28,7 +28,7 @@ jobs:
GITHUB_PR: ${{ steps.source-run-info.outputs.pullRequestNumber }}
update_release_draft:
needs: merge
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: read
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
os: ["ubuntu-22.04"]
php: ["8.0", "8.1"]
coverage: ["none"]
include:
- os: "ubuntu-latest"
- os: "ubuntu-22.04"
php: "8.1"
coverage: "pcov"
# Only test pre-installed (i.e. fast) versions of PHP on Windows.
- os: "windows-2022"
php: "8.1"
coverage: "none"
steps:
- name: Prepare Git
# Windows corrupts line endings on checkout, causing test failures.
Expand All @@ -39,7 +43,7 @@ jobs:
# Only report coverage once
coverage: ${{ matrix.coverage }}
- name: Check dependencies on Ubuntu
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
# Tests for the SSH key commands rely on ssh-agent running.
run: |
eval "$(ssh-agent -s)"
Expand All @@ -64,7 +68,7 @@ jobs:
run: composer coveralls
build-release:
needs: test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
Expand Down Expand Up @@ -94,7 +98,7 @@ jobs:
needs:
- test
- build-release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jira.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name: Sync GitHub issues to Jira
jobs:
open:
if: github.event.action == 'opened'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Create new tickets in Jira
permissions:
issues: write
Expand All @@ -36,7 +36,7 @@ jobs:
ISSUE_TITLE: ${{ github.event.issue.title }}
close:
if: github.event.action == 'closed'
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Comment in Jira
permissions:
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
tests:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

name: Mutation Testing
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
require_label:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
pull-requests: read
if: github.event_name == 'pull_request_target'
Expand All @@ -19,7 +19,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR: ${{ github.event.pull_request.number }}
update_release_draft:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
create-ticket:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: Create a CCB ticket in Jira
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 998f1c6

Please sign in to comment.