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/php-compatibility.yml

    r54681 r55357  
    4747  # - Logs debug information.
    4848  # - Configures caching for PHP compatibility scans.
    49   # - Installs Composer dependencies (use cache if possible).
     49  # - Installs Composer dependencies.
    5050  # - Make Composer packages available globally.
    51   # - Logs PHP_CodeSniffer debug information.
    5251  # - Runs the PHP compatibility tests.
     52  # - Generate a report for displaying issues as pull request annotations.
    5353  # - Ensures version-controlled files are not modified or deleted.
    5454  php-compatibility:
     
    6060    steps:
    6161      - name: Checkout repository
    62         uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
     62        uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
    6363
    6464      - name: Set up PHP
    65         uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
     65        uses: shivammathur/setup-php@8e2ac35f639d3e794c1da1f28999385ab6fdf0fc # v2.23.0
    6666        with:
    6767          php-version: '7.4'
    6868          coverage: none
    69           tools: composer, cs2pr
     69          tools: cs2pr
    7070
    7171      - name: Log debug information
    7272        run: |
    73           php --version
    7473          composer --version
    7574
     
    8180
    8281      - name: Cache PHP compatibility scan cache
    83         uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
     82        uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3
    8483        with:
    8584          path: .cache/phpcompat.json
    8685          key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}
    8786
     87      # Since Composer dependencies are installed using `composer update` and no lock file is in version control,
     88      # passing a custom cache suffix ensures that the cache is flushed at least once per week.
    8889      - name: Install Composer dependencies
    89         uses: ramsey/composer-install@f680dac46551dffb2234a240d65ae806c2999dd6 # v2.1.0
     90        uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
    9091        with:
    91           composer-options: "--no-progress --no-ansi"
     92          custom-cache-suffix: ${{ steps.get-date.outputs.date }}
    9293
    9394      - name: Make Composer packages available globally
    9495        run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH
    95 
    96       - name: Log PHPCS debug information
    97         run: phpcs -i
    9896
    9997      - name: Run PHP compatibility tests
     
    136134    steps:
    137135      - name: Dispatch workflow run
    138         uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
     136        uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
    139137        with:
    140138          retries: 2
Note: See TracChangeset for help on using the changeset viewer.