Make WordPress Core


Ignore:
Timestamp:
03/25/2021 07:59:44 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport several GitHub Action improvements and dependency updates.

This backports several GitHub Action improvements and devDependency updates to the 5.7 branch.

Backports [50432,50435-50436,50479,50485-50487,50545,50579] to the 5.7 branch.
See #52667, #52643, #52658, #52660, #52624, #52625.

Location:
branches/5.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

  • branches/5.7/.github/workflows/phpunit-tests.yml

    r50464 r50584  
    1111      - '[4-9].[0-9]*'
    1212  pull_request:
     13    branches:
     14      - master
     15      - '3.[7-9]'
     16      - '[4-9].[0-9]'
    1317  # Once weekly On Sundays at 00:00 UTC.
    1418  schedule:
     
    3640      - name: Cancel previous runs of this workflow (pull requests only)
    3741        if: ${{ github.event_name == 'pull_request' }}
    38         uses: styfle/cancel-workflow-action@0.8.0
    39         with:
    40           access_token: ${{ github.token }}
     42        uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.0
    4143
    4244  # Runs the PHPUnit tests for WordPress.
     
    6769    runs-on: ${{ matrix.os }}
    6870    strategy:
     71      fail-fast: false
    6972      matrix:
    7073        php: [ '5.6.20', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0' ]
     
    112115
    113116      - name: Checkout repository
    114         uses: actions/checkout@v2
     117        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    115118
    116119      - name: Install NodeJS
    117         uses: actions/setup-node@v2
     120        uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5
    118121        with:
    119122          node-version: 14
    120123
    121124      - name: Use cached Node modules
    122         uses: actions/cache@v2
     125        uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
    123126        env:
    124127          cache-name: cache-node-modules
     
    127130          path: ~/.npm
    128131          key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
    129           restore-keys: |
    130             ${{ runner.os }}-npm-
    131132
    132133      - name: Install Dependencies
     
    140141      - name: Cache Composer dependencies
    141142        if: ${{ env.COMPOSER_INSTALL == true || env.LOCAL_PHP == '8.0-fpm' }}
    142         uses: actions/cache@v2
     143        uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4
    143144        env:
    144145          cache-name: cache-composer-dependencies
     
    146147          path: ${{ steps.composer-cache.outputs.dir }}
    147148          key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
    148           restore-keys: |
    149             ${{ runner.os }}-php-${{ matrix.php }}-composer-
    150149
    151150      - name: Install Composer dependencies
     
    237236      - name: Checkout the WordPress Test Reporter
    238237        if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
    239         uses: actions/checkout@v2
     238        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    240239        with:
    241240          repository: 'WordPress/phpunit-test-runner'
Note: See TracChangeset for help on using the changeset viewer.