|
58 | 58 | COMMIT_MESSAGE: ${{ github.event.head_commit.message }} |
59 | 59 | run: python3 src/ci/github-actions/calculate-job-matrix.py >> $GITHUB_OUTPUT |
60 | 60 | id: jobs |
| 61 | + |
| 62 | + spellcheck: |
| 63 | + name: run spellchecker |
| 64 | + runs-on: ubuntu-latest |
| 65 | + steps: |
| 66 | + - name: Checkout the source code |
| 67 | + uses: actions/checkout@v4 |
| 68 | + |
| 69 | + - name: check typos |
| 70 | + # sync version with src/tools/tidy/src/ext_tool_checks.rs |
| 71 | + |
| 72 | + with: |
| 73 | + # sync target files with src/tools/tidy/src/ext_tool_checks.rs |
| 74 | + files: ./compiler ./library |
| 75 | + config: ./typos.toml |
| 76 | + |
61 | 77 | job: |
62 | 78 | name: ${{ matrix.name }} |
63 | 79 | needs: [ calculate_matrix ] |
@@ -104,18 +120,6 @@ jobs: |
104 | 120 | with: |
105 | 121 | fetch-depth: 2 |
106 | 122 |
|
107 | | - - name: check typos |
108 | | - id: typo_check |
109 | | - if: ${{ env.CI_JOB_NAME == 'mingw-check-tidy' }} |
110 | | - # don't fail job on typos |
111 | | - continue-on-error: true |
112 | | - # sync version with src/tools/tidy/src/ext_tool_checks.rs |
113 | | - |
114 | | - with: |
115 | | - # sync target files with src/tools/tidy/src/ext_tool_checks.rs |
116 | | - files: ./compiler ./library |
117 | | - config: ./typos.toml |
118 | | - |
119 | 123 | # Free up disk space on Linux by removing preinstalled components that |
120 | 124 | # we do not need. We do this to enable some of the less resource |
121 | 125 | # intensive jobs to run on free runners, which however also have |
@@ -250,15 +254,6 @@ jobs: |
250 | 254 | npm install -g @datadog/datadog-ci@^2.x.x |
251 | 255 | python3 src/ci/scripts/upload-build-metrics.py build/cpu-usage.csv |
252 | 256 |
|
253 | | - # If pr have typos, we don't fail immediately, but allow job to continue, |
254 | | - # but still want job to fail at the end. Without this, job will be marked as |
255 | | - # 'success', even if there is typos, so fail it manually. |
256 | | - # |
257 | | - # also see https://github.com/actions/runner/issues/2347 |
258 | | - - name: check typos |
259 | | - if: ${{ env.CI_JOB_NAME == 'mingw-check-tidy' && steps.typo_check.outcome == 'failure' && steps.typo_check.conclusion == 'success' }} |
260 | | - run: exit 1 |
261 | | - |
262 | 257 | # This job isused to tell bors the final status of the build, as there is no practical way to detect |
263 | 258 | # when a workflow is successful listening to webhooks only in our current bors implementation (homu). |
264 | 259 | outcome: |
|
0 commit comments