Changeset 51511 for trunk/.github/workflows/coding-standards.yml
- Timestamp:
- 07/29/2021 07:47:43 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/.github/workflows/coding-standards.yml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/.github/workflows/coding-standards.yml
r51355 r51511 57 57 # - Runs PHPCS on the `tests` directory without warnings suppressed. 58 58 # - Ensures version-controlled files are not modified or deleted. 59 # - todo: Configure Slack notifications for failing scans.60 59 phpcs: 61 60 name: PHP coding standards … … 111 110 # - Run the WordPress JSHint checks. 112 111 # - Ensures version-controlled files are not modified or deleted. 113 # - todo: Configure Slack notifications for failing tests.114 112 jshint: 115 113 name: JavaScript coding standards … … 149 147 - name: Ensure version-controlled files are not modified or deleted 150 148 run: git diff --exit-code 149 150 # Post workflow related status updates to Slack. 151 # 152 # When a job in this workflow fails, a message is posted to #core. 153 # 154 # This job should always require all other jobs in this workflow to complete before running. 155 slack-notifications: 156 name: Slack Notifications 157 runs-on: ubuntu-latest 158 needs: [ phpcs, jshint ] 159 if: ${{ failure() && github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' }} 160 161 steps: 162 - name: Post failure notification to Slack 163 uses: slackapi/slack-github-action@d5d276d7ae0f38f29322b80da9baf985cc80f8b1 # v1.15.0 164 with: 165 payload: "{\"workflow_name\":\"${{ github.workflow }}\",\"run_url\":\"https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" 166 env: 167 SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GHA_WEBHOOK_URL }}
Note: See TracChangeset
for help on using the changeset viewer.