Changeset 53616 for branches/4.5/.github/workflows/coding-standards.yml
- Timestamp:
- 06/30/2022 05:19:15 PM (2 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/trunk merged: 50704,50930,51341,51355,51498,51511,51535,51921,51924-51925,51937,52002,52130,52183,52233,53112,53581-53582,53592
- Property svn:mergeinfo changed
-
branches/4.5/.github/workflows/coding-standards.yml
r50638 r53616 6 6 push: 7 7 branches: 8 - master9 8 - trunk 10 9 - '3.[89]' … … 15 14 pull_request: 16 15 branches: 17 - master18 16 - trunk 19 17 - '3.[89]' … … 35 33 workflow_dispatch: 36 34 35 # Cancels all previous workflow runs for pull requests that have not completed. 36 concurrency: 37 # The concurrency group contains the workflow name and the branch name for pull requests 38 # or the commit hash for any other events. 39 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 40 cancel-in-progress: true 41 37 42 jobs: 38 43 # Runs the JavaScript coding standards checks. … … 42 47 # Performs the following steps: 43 48 # - Checks out the repository. 44 # - Logs debug information about the runner container. 45 # - Installs NodeJS 14. 46 # - Sets up caching for NPM. 49 # - Logs debug information about the GitHub Action runner. 50 # - Installs NodeJS. 47 51 # - Logs updated debug information. 48 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.52 # _ Installs NPM dependencies. 49 53 # - Run the WordPress JSHint checks. 50 # - todo: Configure Slack notifications for failing tests.51 54 jshint: 52 55 name: JavaScript coding standards 53 56 runs-on: ubuntu-latest 57 timeout-minutes: 20 54 58 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 55 59 env: … … 58 62 steps: 59 63 - name: Checkout repository 60 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.464 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 61 65 62 66 - name: Log debug information … … 68 72 69 73 - name: Install NodeJS 70 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.574 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 71 75 with: 72 node-version: 14 73 74 - name: Cache NodeJS modules 75 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 76 env: 77 cache-name: cache-node-modules 78 with: 79 # npm cache files are stored in `~/.npm` on Linux/macOS 80 path: ~/.npm 81 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 76 node-version-file: '.nvmrc' 77 cache: npm 82 78 83 79 - name: Log debug information … … 91 87 - name: Run JSHint 92 88 run: npm run grunt jshint 89 90 slack-notifications: 91 name: Slack Notifications 92 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 93 needs: [ jshint ] 94 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 95 with: 96 calling_status: ${{ needs.jshint.result == 'success' && 'success' || needs.jshint.result == 'cancelled' && 'cancelled' || 'failure' }} 97 secrets: 98 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 99 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 100 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 101 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Note: See TracChangeset
for help on using the changeset viewer.