Make WordPress Core

Changeset 53112


Ignore:
Timestamp:
04/08/2022 06:37:20 PM (2 years ago)
Author:
desrosj
Message:

Build/Test Tools: Update all 3rd party actions to their latest versions.

This updates all 3rd party GitHub actions to their latest versions.

  • actions/cache from 2.1.6 to 3.0.1.
  • actions/github-script from 5.0.0 to 6.0.0.
  • actions/setup-node from 2.4.1 to 3.1.0.
  • codecov/codecov-action from 2.1.0 to 3.0.0.
  • ramsey/composer-install from 1.3.0 to 2.1.0.
  • shivammathur/setup-php from 2.15.0 to 2.18.0.

Additionally, this updates all instances of the actions/setup-node action to replace the node-version option with the new node-version-file. This simplifies the process of changing the version of NodeJS used in workflows by only requiring the version to be changed once in the .nvmrc file.

See #54725.

Location:
trunk/.github/workflows
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/coding-standards.yml

    r52233 r53112  
    6767
    6868      - name: Set up PHP
    69         uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
     69        uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0
    7070        with:
    7171          php-version: '7.4'
     
    8585
    8686      - name: Cache PHPCS scan cache
    87         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     87        uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
    8888        with:
    8989          path: .cache/phpcs.json
     
    9191
    9292      - name: Install Composer dependencies
    93         uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
     93        uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    9494        with:
    9595          composer-options: "--no-progress --no-ansi --no-interaction"
     
    142142
    143143      - name: Install NodeJS
    144         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     144        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    145145        with:
    146           node-version: 14
     146          node-version-file: '.nvmrc'
    147147          cache: npm
    148148
  • trunk/.github/workflows/end-to-end-tests.yml

    r52233 r53112  
    7272
    7373      - name: Install NodeJS
    74         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     74        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    7575        with:
    76           node-version: 14
     76          node-version-file: '.nvmrc'
    7777          cache: npm
    7878
  • trunk/.github/workflows/javascript-tests.yml

    r52233 r53112  
    6767
    6868      - name: Install NodeJS
    69         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     69        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    7070        with:
    71           node-version: 14
     71          node-version-file: '.nvmrc'
    7272          cache: npm
    7373
  • trunk/.github/workflows/php-compatibility.yml

    r52233 r53112  
    6161
    6262      - name: Set up PHP
    63         uses: shivammathur/setup-php@ac7d3d7f84d81a029c20ab72d60264bdb7535831 # v2.15.0
     63        uses: shivammathur/setup-php@d37cc3048580de06099c81ded417530716a0d7ab # v2.18.0
    6464        with:
    6565          php-version: '7.4'
     
    7979
    8080      - name: Cache PHP compatibility scan cache
    81         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     81        uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
    8282        with:
    8383          path: .cache/phpcompat.json
     
    8585
    8686      - name: Install Composer dependencies
    87         uses: ramsey/composer-install@a7320a0581dcd0432930c48a0e7ced67e6ec17e8 # v1.3.0
     87        uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    8888        with:
    8989          composer-options: "--no-progress --no-ansi --no-interaction"
  • trunk/.github/workflows/phpunit-tests.yml

    r52233 r53112  
    114114
    115115      - name: Install NodeJS
    116         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     116        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    117117        with:
    118           node-version: 14
     118          node-version-file: '.nvmrc'
    119119          cache: npm
    120120
     
    133133
    134134      - name: Cache Composer dependencies
    135         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     135        uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
    136136        env:
    137137          cache-name: cache-composer-dependencies
  • trunk/.github/workflows/test-coverage.yml

    r52233 r53112  
    7878
    7979      - name: Install NodeJS
    80         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     80        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    8181        with:
    82           node-version: 14
     82          node-version-file: '.nvmrc'
    8383          cache: npm
    8484
     
    9797
    9898      - name: Cache Composer dependencies
    99         uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # v2.1.6
     99        uses: actions/cache@136d96b4aee02b1f0de3ba493b1d47135042d9c0 # v3.0.1
    100100        env:
    101101          cache-name: cache-composer-dependencies
     
    151151      - name: Upload single site report to Codecov
    152152        if: ${{ ! matrix.multisite }}
    153         uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0
     153        uses: codecov/codecov-action@e3c560433a6cc60aec8812599b7844a7b4fa0d71 # v3.0.0
    154154        with:
    155155          file: wp-code-coverage-single-clover-${{ github.sha }}.xml
  • trunk/.github/workflows/test-npm.yml

    r52233 r53112  
    7171
    7272      - name: Install NodeJS
    73         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     73        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    7474        with:
    75           node-version: 14
     75          node-version-file: '.nvmrc'
    7676          cache: npm
    7777
     
    130130
    131131      - name: Install NodeJS
    132         uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # v2.4.1
     132        uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0
    133133        with:
    134           node-version: 14
     134          node-version-file: '.nvmrc'
    135135          cache: npm
    136136
  • trunk/.github/workflows/test-old-branches.yml

    r52546 r53112  
    6363    steps:
    6464      - name: Dispatch workflow run
    65         uses: actions/github-script@441359b1a30438de65712c2fbca0abe4816fa667 # v5.0.0
     65        uses: actions/github-script@9ac08808f993958e9de277fe43a64532a609130e # v6.0.0
    6666        if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '5.9' }}
    6767        with:
Note: See TracChangeset for help on using the changeset viewer.