Changeset 50296 for branches/5.6/.github/workflows/coding-standards.yml
- Timestamp:
- 02/12/2021 02:53:59 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
- Property svn:mergeinfo changed
/trunk merged: 49781-49784,49786,49836,49938,50268,50285
- Property svn:mergeinfo changed
-
branches/5.6/.github/workflows/coding-standards.yml
r49369 r50296 17 17 # Performs the following steps: 18 18 # - Checks out the repository. 19 # - Configures caching for Composer.20 19 # - Sets up PHP. 21 20 # - Logs debug information. 22 # - Installs Composer dependencies (from cache if possible). 21 # - Installs Composer dependencies (use cache if possible). 22 # - Make Composer packages available globally. 23 23 # - Logs PHP_CodeSniffer debug information. 24 24 # - Runs PHPCS on the full codebase with warnings suppressed. … … 28 28 name: PHP coding standards 29 29 runs-on: ubuntu-latest 30 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 31 30 32 steps: 31 33 - name: Checkout repository 32 34 uses: actions/checkout@v2 33 34 - name: Get Composer cache directory35 id: composer-cache36 run: echo "::set-output name=dir::$(composer config cache-files-dir)"37 38 - name: Set up Composer caching39 uses: actions/cache@v240 env:41 cache-name: cache-composer-dependencies42 with:43 path: ${{ steps.composer-cache.outputs.dir }}44 key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}45 restore-keys: |46 ${{ runner.os }}-composer-47 35 48 36 - name: Set up PHP … … 59 47 60 48 - name: Install Composer dependencies 61 run: | 62 composer install --prefer-dist --no-suggest --no-progress --no-ansi --no-interaction 63 echo "${PWD}/vendor/bin" >> $GITHUB_PATH 49 uses: ramsey/composer-install@v1 50 with: 51 composer-options: "--no-progress --no-ansi --no-interaction" 52 53 - name: Make Composer packages available globally 54 run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH 64 55 65 56 - name: Log PHPCS debug information … … 74 65 # Runs the JavaScript coding standards checks. 75 66 # 67 # JSHint violations are not currently reported inline with annotations. 68 # 76 69 # Performs the following steps: 77 70 # - Checks out the repository. 78 71 # - Logs debug information about the runner container. 79 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)72 # - Installs NodeJS 14. 80 73 # - Sets up caching for NPM. 81 74 # - Logs updated debug information. … … 86 79 name: JavaScript coding standards 87 80 runs-on: ubuntu-latest 81 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 88 82 env: 89 83 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 84 90 85 steps: 91 86 - name: Checkout repository … … 102 97 uses: actions/setup-node@v1 103 98 with: 104 node-version: 1 299 node-version: 14 105 100 106 101 - name: Cache NodeJS modules
Note: See TracChangeset
for help on using the changeset viewer.