Skip to content

Commit

Permalink
Update occurence of all ubuntu versions to ubuntu-latest (#7209)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakpathania authored Sep 14, 2023
1 parent a23c791 commit 88d45eb
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-zip-and-run-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:
build-zip:
name: "Build the zip file"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
check-changelog:
name: Check changelog
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
# clone the repository
- uses: actions/checkout@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
generate-wc-compat-matrix:
name: "Generate the matrix for woocommerce compatibility dynamically"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate_matrix.outputs.matrix }}
steps:
Expand All @@ -30,7 +30,7 @@ jobs:
woocommerce-compatibility:
name: "WC compatibility"
needs: generate-wc-compat-matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
WP_VERSION: ${{ matrix.wordpress }}
WC_VERSION: ${{ matrix.woocommerce }}
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:

generate-wc-compat-beta-matrix:
name: "Generate the matrix for compatibility-woocommerce-beta dynamically"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate_matrix.outputs.matrix }}
steps:
Expand All @@ -72,7 +72,7 @@ jobs:
compatibility-woocommerce-beta:
name: Environment - WC beta
needs: generate-wc-compat-beta-matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.generate-wc-compat-beta-matrix.outputs.matrix) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
jobs:
woocommerce-coverage:
name: Code coverage
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defaults:
jobs:
create-release:
name: "Create the pre-release"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ inputs.releaseVersion }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ concurrency:

jobs:
wcpay-e2e-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
fail-fast: false
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:
jobs:
generate-matrix:
name: "Generate the matrix for subscriptions-tests dynamically"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate_matrix.outputs.matrix }}
steps:
Expand All @@ -42,7 +42,7 @@ jobs:
# Run WCPay & subscriptions tests against specific WC versions
wcpay-subscriptions-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: generate-matrix
strategy:
fail-fast: false
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
# Run tests against WC Checkout blocks & WC latest
# [TODO] Unskip blocks tests after investigating constant failures.
# blocks-tests:
# runs-on: ubuntu-20.04
# runs-on: ubuntu-latest
# name: WC - latest | blocks - shopper

# env:
Expand All @@ -93,7 +93,7 @@ jobs:

# Run tests against WP Nightly & WC latest
wp-nightly-tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/i18n-weekly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
i18n-release:
name: Release
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
# clone the repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/js-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
lint:
name: JS linting
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
# clone the repository
- uses: actions/checkout@v3
Expand All @@ -32,7 +32,7 @@ jobs:

test:
name: JS testing
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
# clone the repository
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Check for version-specific PHP compatibility
php-compatibility:
name: PHP Compatibility
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Set up PHP"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/php-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
lint:
name: PHP linting
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
# clone the repository
- uses: actions/checkout@v3
Expand All @@ -34,7 +34,7 @@ jobs:

generate-test-matrix:
name: "Generate the matrix for php tests dynamically"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate_matrix.outputs.matrix }}
steps:
Expand All @@ -47,7 +47,7 @@ jobs:
test:
name: PHP testing
needs: generate-test-matrix
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 10
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/post-release-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
jobs:
get-last-released-version:
name: "Get the last released version"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
releaseVersion: ${{ steps.current-version.outputs.RELEASE_VERSION }}

Expand All @@ -31,7 +31,7 @@ jobs:
create-gh-release:
name: "Create a GH release"
needs: get-last-released-version
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }}

Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
merge-trunk-into-develop:
name: "Merge trunk back into develop"
needs: get-last-released-version
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }}

Expand All @@ -98,7 +98,7 @@ jobs:
trigger-translations:
name: "Trigger translations update for the release"
needs: [ get-last-released-version, create-gh-release ]
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: "Checkout repository (trunk)"
uses: actions/checkout@v3
Expand All @@ -114,7 +114,7 @@ jobs:
update-wiki:
name: "Update the wiki for the next release"
needs: get-last-released-version
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ needs.get-last-released-version.outputs.releaseVersion }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-build-live-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
jobs:
build-and-inform-zip-file:
name: "Build and inform the zip file"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defaults:
jobs:
process-changelog:
name: "Process the changelog"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
CHANGELOG_ACTION: ${{ inputs.action-type }}
RELEASE_VERSION: ${{ inputs.release-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-code-freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defaults:
jobs:
check-code-freeze:
name: "Check that today is the day of the code freeze"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
freeze: ${{ steps.check-freeze.outputs.FREEZE }}
nextReleaseVersion: ${{ steps.next-version.outputs.NEXT_RELEASE_VERSION }}
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
name: "Send notification to Slack"
needs: [check-code-freeze, create-release-pr]
if: ${{ ! ( inputs.skipSlackPing && needs.create-release-pr.outputs.release-pr-id ) }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
env:
RELEASE_VERSION: ${{ needs.check-code-freeze.outputs.nextReleaseVersion }}
RELEASE_DATE: ${{ needs.check-code-freeze.outputs.nextReleaseDate }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ defaults:
jobs:
prepare-release:
name: "Prepare a stable release"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.create_branch.outputs.branch-name }}
release-pr-id: ${{ steps.create-pr-to-trunk.outputs.RELEASE_PR_ID }}
Expand Down
4 changes: 4 additions & 0 deletions changelog/dev-ubuntu-workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Comment: Update occurence of all ubuntu versions to ubuntu-latest

0 comments on commit 88d45eb

Please sign in to comment.