Make WordPress Core


Ignore:
Timestamp:
07/03/2024 02:28:46 PM (3 months ago)
Author:
desrosj
Message:

Build/Test Tools: Make use of new reusable workflows for 4.9.

This updates the 4.9 branch to utilize the new reusable workflows in trunk introduced in [58165].

This also includes backports for a some additional improvements and bug fixes that are necessary for the local development environment to continue working long term:

  • The image and platform properties for the mysql container have been updated to always prefer amd64 containers (#60822).
  • macos-13 is now pinned for MacOS jobs instead of macos-latest (#61340).
  • Migrating to Docker Compose V2 (#60901).
  • Removing the version property from docker-compose.yml (#59416).
  • Improvements to how artifacts and comments for Playground testing are generated.
  • Removing SVN related commands causing failures (#61216).
  • Updating the actions/github-scripts action to the latest version.
  • Improvements to the healthcheck command for the mysql container (#58867).

Merges [51673], [53552], [56464], [57918], [58157], [57124], [57125], [57249] to the 4.9 branch.

Props johnbillion, joemcgill, swissspidy, thelovekesh, narenin, mukesh27, JeffPaul, peterwilsoncc, zieladam, ockham, SergeyBiryukov, jorbin, Clorith, afragen, jrf.
See #58867, #61340, #60822, #61216, #60901, #61101, #59416, #59805, #61213.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/.github/workflows/coding-standards.yml

    r55527 r58636  
    4141  cancel-in-progress: true
    4242
     43# Disable permissions for all available scopes by default.
     44# Any needed permissions should be configured at the job level.
     45permissions: {}
     46
    4347jobs:
    4448  # Runs the JavaScript coding standards checks.
    45   #
    46   # JSHint violations are not currently reported inline with annotations.
    47   #
    48   # Performs the following steps:
    49   # - Checks out the repository.
    50   # - Logs debug information about the GitHub Action runner.
    51   # - Installs NodeJS.
    52   # - Logs updated debug information.
    53   # _ Installs npm dependencies.
    54   # - Run the WordPress JSHint checks.
    5549  jshint:
    5650    name: JavaScript coding standards
    57     runs-on: ubuntu-latest
    58     timeout-minutes: 20
     51    uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk
     52    permissions:
     53      contents: read
    5954    if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
    60     env:
    61       PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}
    62 
    63     steps:
    64       - name: Checkout repository
    65         uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    66 
    67       - name: Log debug information
    68         run: |
    69           npm --version
    70           node --version
    71           git --version
    72           svn --version
    73 
    74       - name: Set up Node.js
    75         uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
    76         with:
    77           node-version-file: '.nvmrc'
    78           cache: npm
    79 
    80       - name: Log debug information
    81         run: |
    82           npm --version
    83           node --version
    84 
    85       - name: Install Dependencies
    86         run: npm ci
    87 
    88       - name: Run JSHint
    89         run: npm run grunt jshint
    9055
    9156  slack-notifications:
    9257    name: Slack Notifications
    9358    uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
     59    permissions:
     60      actions: read
     61      contents: read
    9462    needs: [ jshint ]
    9563    if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
     
    10573    name: Failed workflow tasks
    10674    runs-on: ubuntu-latest
     75    permissions:
     76      actions: write
    10777    needs: [ jshint, slack-notifications ]
    10878    if: |
     
    11787    steps:
    11888      - name: Dispatch workflow run
    119         uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
     89        uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
    12090        with:
    12191          retries: 2
Note: See TracChangeset for help on using the changeset viewer.