Changeset 58643 for branches/4.2/.github/workflows/coding-standards.yml
- Timestamp:
- 07/03/2024 03:33:59 PM (5 months ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
- Property svn:mergeinfo changed
/trunk merged: 51673,53552,56464,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/4.2/.github/workflows/coding-standards.yml
r55534 r58643 41 41 cancel-in-progress: true 42 42 43 # Disable permissions for all available scopes by default. 44 # Any needed permissions should be configured at the job level. 45 permissions: {} 46 43 47 jobs: 44 48 # Runs the JavaScript coding standards checks. 45 #46 # JSHint violations are not currently reported inline with annotations.47 #48 # Performs the following steps:49 # - Checks out the repository.50 # - Logs debug information about the GitHub Action runner.51 # - Installs NodeJS.52 # - Logs updated debug information.53 # _ Installs npm dependencies.54 # - Run the WordPress JSHint checks.55 49 jshint: 56 50 name: JavaScript coding standards 57 runs-on: ubuntu-latest 58 timeout-minutes: 20 51 uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk 52 permissions: 53 contents: read 59 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 60 env:61 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}62 63 steps:64 - name: Checkout repository65 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.066 67 - name: Log debug information68 run: |69 npm --version70 node --version71 git --version72 svn --version73 74 - name: Set up Node.js75 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.076 with:77 node-version-file: '.nvmrc'78 cache: npm79 80 - name: Log debug information81 run: |82 npm --version83 node --version84 85 - name: Install Dependencies86 run: npm ci87 88 - name: Run JSHint89 run: npm run grunt jshint90 55 91 56 slack-notifications: 92 57 name: Slack Notifications 93 58 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 59 permissions: 60 actions: read 61 contents: read 94 62 needs: [ jshint ] 95 63 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 105 73 name: Failed workflow tasks 106 74 runs-on: ubuntu-latest 75 permissions: 76 actions: write 107 77 needs: [ jshint, slack-notifications ] 108 78 if: | … … 117 87 steps: 118 88 - name: Dispatch workflow run 119 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.089 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 120 90 with: 121 91 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.