Skip to content

Commit

Permalink
ci: only run code build/test when not docs-only PR
Browse files Browse the repository at this point in the history
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths

Another experiment in improving developer experience when it comes
to docs changes. The contributor shouldn't have to wait 10 minutes
for the golang benchmarks, or be confused by flakey macos tests if
the contribution is for docs.

Since the docs build still _builds_ the golang binary (for live-blocks)
we're not depending the GHA in the netlify job.

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
  • Loading branch information
srenatus committed May 2, 2022
1 parent 8544771 commit 930b198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: PR Check

on: [pull_request]
on:
pull_request:
paths-ignore:
- "docs/**"

jobs:
# All jobs essentially re-create the `ci-release-test` make target, but are split
Expand Down

0 comments on commit 930b198

Please sign in to comment.