@@ -121,7 +121,7 @@ jobs:
121121 with :
122122 global-json-file : global.json
123123
124- - name : Run cargo fmt
124+ - name : Run ci lint
125125 run : cargo ci lint
126126
127127 wasm_bindings :
@@ -209,20 +209,20 @@ jobs:
209209 # without this (reassigning env vars and stuff), but was unable to get it to work and it felt like an uphill battle.
210210 options : --user 0:0
211211 steps :
212- # Uncomment this before merging so that it will run properly if run manually through the GH actions flow. It was playing weird with rolled back
213- # commits though.
214- # - name: Find Git ref
215- # env:
216- # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
217- # shell: bash
218- # run: |
219- # PR_NUMBER="${{ github.event.inputs.pr_number || null }}"
220- # if test -n "${PR_NUMBER}"; then
221- # GIT_REF="$( gh pr view --repo clockworklabs/SpacetimeDB $PR_NUMBER --json headRefName --jq .headRefName )"
222- # else
223- # GIT_REF="${{ github.ref }}"
224- # fi
225- # echo "GIT_REF=${GIT_REF}" >>"$GITHUB_ENV"
212+ # Uncomment this before merging so that it will run properly if run manually through the GH actions flow. It was playing weird with rolled back
213+ # commits though.
214+ # - name: Find Git ref
215+ # env:
216+ # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
217+ # shell: bash
218+ # run: |
219+ # PR_NUMBER="${{ github.event.inputs.pr_number || null }}"
220+ # if test -n "${PR_NUMBER}"; then
221+ # GIT_REF="$( gh pr view --repo clockworklabs/SpacetimeDB $PR_NUMBER --json headRefName --jq .headRefName )"
222+ # else
223+ # GIT_REF="${{ github.ref }}"
224+ # fi
225+ # echo "GIT_REF=${GIT_REF}" >>"$GITHUB_ENV"
226226 - name : Checkout sources
227227 uses : actions/checkout@v4
228228 with :
@@ -284,6 +284,33 @@ jobs:
284284 cargo test
285285 '
286286
287+ ci_command_docs :
288+ name : Check CI command docs
289+ runs-on : ubuntu-latest
290+ steps :
291+ - name : Find Git ref
292+ env :
293+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
294+ shell : bash
295+ run : |
296+ PR_NUMBER="${{ github.event.inputs.pr_number || null }}"
297+ if test -n "${PR_NUMBER}"; then
298+ GIT_REF="$( gh pr view --repo clockworklabs/SpacetimeDB $PR_NUMBER --json headRefName --jq .headRefName )"
299+ else
300+ GIT_REF="${{ github.ref }}"
301+ fi
302+ echo "GIT_REF=${GIT_REF}" >>"$GITHUB_ENV"
303+
304+ - name : Checkout sources
305+ uses : actions/checkout@v4
306+ with :
307+ ref : ${{ env.GIT_REF }}
308+
309+ - uses : dsherret/rust-toolchain-file@v1
310+
311+ - name : Check for docs change
312+ run : cargo ci self-docs --check
313+
287314 cli_docs :
288315 name : Check CLI docs
289316 permissions : read-all
0 commit comments