Skip to content

Commit

Permalink
ci: don't run long tests on docs-only PRs
Browse files Browse the repository at this point in the history
I want to keep the docs up to date, and sometimes that requires fussy
management of version numbers, particularly as we invest in multi-branch
workflows to support point releases (e.g. #4545). If *only* the docs
changed, skip the long-running rust tests, because we don't need to
validate rust functionality on docs changes.
  • Loading branch information
conorsch committed Jun 4, 2024
1 parent 77f3f22 commit 76ec232
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Rust CI
on: pull_request
on:
pull_request:
# Don't run Rust tests if only docs changed.
paths-ignore:
- 'docs/**'

jobs:
test:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Smoke Test
on:
pull_request:
push:
branches:
- main
# Don't run Rust tests if only docs changed.
paths-ignore:
- 'docs/**'

jobs:
smoke_test:
Expand Down

0 comments on commit 76ec232

Please sign in to comment.