Make WordPress Core

Changeset 50763


Ignore:
Timestamp:
04/16/2021 05:24:47 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Make adjustments to how often old branches are tested.

This adjusts the workflow responsible for testing old branches to only test old branches once per month. This more closely resembles the testing practices previously in place on TravisCI.

The latest, supported branch will continue to be tested twice per month.

This also makes adjustments so that the workflow is run whenever changes are made to it. This will help verify changes without having to wait until the next scheduled run.

Fixes #52653.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-old-branches.yml

    r50648 r50763  
    22
    33on:
    4   # Once weekly On Mondays at 00:00 UTC.
     4  # Verify the workflow is successful when this file is updated.
     5  push:
     6    branches:
     7      - master
     8      - trunk
     9    paths:
     10      - '.github/workflows/test-old-branches.yml'
     11  # Run twice a month on the 1st and 15th at 00:00 UTC.
    512  schedule:
    6     - cron: '0 0 1,15 * *'
     13    - cron: '0 0 1 * *'
     14    - cron: '0 0 15 * *'
    715
    816jobs:
     
    4654            workflow: 'javascript-tests.yml'
    4755
     56    # Run all branches monthly, but only the currently supported one twice per month.
    4857    steps:
    4958      - name: Dispatch workflow run
    5059        uses: actions/github-script@47f7cf65b5ced0830a325f705cad64f2f58dddf7 # v3.1.0
     60        if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '5.7' }}
    5161        with:
    5262          github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}
Note: See TracChangeset for help on using the changeset viewer.