Changeset 50317 for branches/4.3/.github/workflows/php-compatibility.yml
- Timestamp:
- 02/12/2021 08:27:47 PM (4 years ago)
- Location:
- branches/4.3
- Files:
-
- 1 added
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/trunk merged: 49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298
- Property svn:mergeinfo changed
-
branches/4.3/.github/workflows/php-compatibility.yml
r49162 r50317 7 7 # The PHP compatibility testing was introduced in WordPress 5.5. 8 8 - '5.[5-9]' 9 - '[6-9].*' 9 - '[6-9].[0-9]' 10 tags: 11 - '5.[5-9]*' 12 - '[6-9].[0-9]*' 10 13 pull_request: 11 14 … … 18 21 # Performs the following steps: 19 22 # - Checks out the repository. 20 # - Configures caching for Composer.21 23 # - Sets up PHP. 22 24 # - Logs debug information about the runner container. 23 # - Installs Composer dependencies (from cache if possible). 25 # - Installs Composer dependencies (use cache if possible). 26 # - Make Composer packages available globally. 24 27 # - Logs PHP_CodeSniffer debug information. 25 28 # - Runs the PHP compatibility tests. … … 28 31 name: Check PHP compatibility 29 32 runs-on: ubuntu-latest 33 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 30 34 31 35 steps: 32 36 - name: Checkout repository 33 37 uses: actions/checkout@v2 34 35 - name: Get Composer cache directory36 id: composer-cache37 run: echo "::set-output name=dir::$(composer config cache-files-dir)"38 39 - name: Set up Composer caching40 uses: actions/cache@v241 env:42 cache-name: cache-composer-dependencies43 with:44 path: ${{ steps.composer-cache.outputs.dir }}45 key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}46 restore-keys: |47 ${{ runner.os }}-composer-48 38 49 39 - name: Set up PHP … … 60 50 61 51 - name: Install Composer dependencies 62 run: | 63 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 64 echo "vendor/bin" >> $GITHUB_PATH 52 uses: ramsey/composer-install@v1 53 with: 54 composer-options: "--no-progress --no-ansi --no-interaction" 55 56 - name: Make Composer packages available globally 57 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 58 59 - name: Log PHPCS debug information 60 run: phpcs -i 65 61 66 62 - name: Run PHP compatibility tests 67 run: vendor/bin/phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr63 run: phpcs --standard=phpcompat.xml.dist -q --report=checkstyle | cs2pr
Note: See TracChangeset
for help on using the changeset viewer.