Make WordPress Core


Ignore:
Timestamp:
02/17/2023 07:51:16 AM (3 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport updates to GitHub Actions.

This backports updates to GitHub Actions workflows required to address deprecated notices related to save-output and set-output.

Merges [54650], [54750], [54851], [54852], [54856], and [55152] to the 6.1 branch.
See #56882, #56820.

File:
1 edited

Legend:

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

    r54681 r55357  
    2222      - '**.js'
    2323      - '**.php'
    24       # These files configure NPM. Changes could affect the outcome.
     24      # These files configure npm. Changes could affect the outcome.
    2525      - 'package*.json'
    2626      # These files configure Composer. Changes could affect the outcome.
     
    4949  # - Checks out the repository.
    5050  # - Sets up PHP.
    51   # - Logs debug information.
    5251  # - Configures caching for PHPCS scans.
    53   # - Installs Composer dependencies (use cache if possible).
     52  # - Installs Composer dependencies.
    5453  # - Make Composer packages available globally.
    55   # - Logs PHP_CodeSniffer debug information.
    5654  # - Runs PHPCS on the full codebase with warnings suppressed.
     55  # - Generate a report for displaying issues as pull request annotations.
    5756  # - Runs PHPCS on the `tests` directory without warnings suppressed.
     57  # - Generate a report for displaying `test` directory issues as pull request annotations.
    5858  # - Ensures version-controlled files are not modified or deleted.
    5959  phpcs:
     
    6565    steps:
    6666      - name: Checkout repository
    67         uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
     67        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6868
    6969      - name: Set up PHP
    70         uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
     70        uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0
    7171        with:
    7272          php-version: '7.4'
    7373          coverage: none
    74           tools: composer, cs2pr
    75 
    76       - name: Log debug information
    77         run: |
    78           php --version
    79           composer --version
     74          tools: cs2pr
    8075
    8176      # This date is used to ensure that the PHPCS cache is cleared at least once every week.
     
    8681
    8782      - name: Cache PHPCS scan cache
    88         uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
     83        uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
    8984        with:
    9085          path: .cache/phpcs.json
    9186          key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
    9287
     88      # Since Composer dependencies are installed using `composer update` and no lock file is in version control,
     89      # passing a custom cache suffix ensures that the cache is flushed at least once per week.
    9390      - name: Install Composer dependencies
    94         uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
    95         with:
    96           composer-options: "--no-progress --no-ansi"
     91        uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
     92        with:
     93          custom-cache-suffix: ${{ steps.get-date.outputs.date }}
    9794
    9895      - name: Make Composer packages available globally
    9996        run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
    100 
    101       - name: Log PHPCS debug information
    102         run: phpcs -i
    10397
    10498      - name: Run PHPCS on all Core files
     
    127121  # Performs the following steps:
    128122  # - Checks out the repository.
     123  # - Sets up Node.js.
    129124  # - Logs debug information about the GitHub Action runner.
    130   # - Installs NodeJS.
    131   # - Logs updated debug information.
    132   # _ Installs NPM dependencies.
     125  # - Installs npm dependencies.
    133126  # - Run the WordPress JSHint checks.
    134127  # - Ensures version-controlled files are not modified or deleted.
     
    143136    steps:
    144137      - name: Checkout repository
    145         uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
     138        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
     139
     140      - name: Set up Node.js
     141        uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
     142        with:
     143          node-version-file: '.nvmrc'
     144          cache: npm
    146145
    147146      - name: Log debug information
     
    152151          svn --version
    153152
    154       - name: Install NodeJS
    155         uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
    156         with:
    157           node-version-file: '.nvmrc'
    158           cache: npm
    159 
    160       - name: Log debug information
    161         run: |
    162           npm --version
    163           node --version
    164 
    165       - name: Install Dependencies
     153      - name: Install npm Dependencies
    166154        run: npm ci
    167155
     
    201189    steps:
    202190      - name: Dispatch workflow run
    203         uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
     191        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
    204192        with:
    205193          retries: 2
Note: See TracChangeset for help on using the changeset viewer.