Skip to content

ci: build docs on pull requests that touch docs - #1257

Merged
krozniata merged 2 commits into
mainfrom
ci/docs-build-on-pr
Nov 17, 2026
Merged

krozniata merged 2 commits into
mainfrom
ci/docs-build-on-pr

Conversation

@krozniata

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings November 17, 2026 15:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CI path filter omits .github/workflows/deploy-docs.yml, allowing changes to the production documentation deployment workflow to bypass docs build validation.

1 open issue
What changed in this PR

Adds a reusable GitHub Actions workflow to build the Rspress documentation and conditionally runs it in CI for pull requests that modify documentation-related files.

Changes:

  • Adds a Bun/Node-based documentation build workflow.
  • Adds documentation path filtering and a conditional docs build job.
  • Includes the docs build in the required CI checks.
File Description
.github/​workflows/​docs.yml Defines the reusable Bun/Node-based Rspress documentation installation and build workflow.
.github/​workflows/​ci.yml Detects documentation changes, conditionally runs the docs build, and includes it in the required CI checks.

Review effort: Lite

Comment thread .github/workflows/ci.yml Resolved
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

🟢 e2e ios: 51 passed

All 51 tests in 20 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 51.9s
🟢 basic pager › in LTR › pages horizontally 20.3s
🟢 basic pager › in LTR › pages vertically 11.9s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 19.6s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 8s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 5.1s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 5.4s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 4.8s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 13.7s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 15.1s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 14.5s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 4.9s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 4.6s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 9.2s
🟢 setPage called behind a native-stack modal lands on the requested page 9.2s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 9.7s
🟢 keyboard avoidance does not shrink the page under the keyboard 9.7s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 7.0s
🟢 outer pager stays responsive after its page count changes around a nested pager 7.0s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 6.9s
🟢 FlatList inside the pager gets the search bar safe-area insets 6.9s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 1m 51s
🟢 leaving a page with setPage blurs its input 7.3s
🟢 setPage with an input focused lands on the target page 7.2s
🟢 a setPage two pages away lands on the far page 7.2s
🟢 a setPage repeated during the slide changes nothing 7.1s
🟢 leaving a page with a swipe blurs its input 7.1s
🟢 an input focused on the new page keeps focus 8.0s
🟢 a swipe keeps the focus the new page takes from onPageSelected 8.0s
🟢 a setPage that interrupts another lands on the page asked for last 6.9s
🟢 a setPage back to the page a slide is passing lands there 5.5s
🟢 a setPage that interrupts another still lands on the later page 7.5s
🟢 a setPage redirected once the focus has landed blurs it 6.9s
🟢 two setPage calls that cancel out land on the first page 6.7s
🟢 right to left › leaving a page with a swipe blurs its input 17.1s
🟢 a page that grows with the keyboard still lands on the target page 7.9s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 5.2s
🟢 a pager scrolled to a focused field still lands on the page asked for 5.2s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 6.9s
🟢 a pager remounted after its screen was covered starts on its own initialPage 6.9s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 18.8s
🟢 on-drag: dragging the pager blurs the input 6.1s
🟢 on-drag: setPage keeps the input focused 6.1s
🟢 none: dragging the pager keeps the input focused 6.6s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 34.9s
🟢 setPage mounts the target and its neighbours only 7.8s
🟢 swiping mounts the next neighbour 8.0s
🟢 preload distance 0 mounts only the pages visited 8.3s
🟢 a visited page keeps its scroll position 10.7s
🟢 tests/material-top-bar.e2e.ts · 1 passed 10.6s
🟢 material top tabs survive a native-stack push and pop 10.6s
🟢 tests/memo-pages.e2e.ts · 1 passed 6.9s
🟢 memoized pages do not re-render with the pager 6.9s
🟢 tests/native-driver-events.e2e.ts · 2 passed 9.9s
🟢 native driver events › setPage through the Animated ref drives the native value 5.2s
🟢 native driver events › a swipe drives the native value 4.7s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 9.1s
🟢 nested horizontal and vertical pagers scroll independently 9.1s
🟢 tests/on-page-selected.e2e.ts · 1 passed 10.2s
🟢 onPageSelected fires an alert for every page change 10.2s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 15.1s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 15.1s
🟢 tests/set-page-animation.e2e.ts · 4 passed 32.1s
🟢 ltr › direct setPage selects only the target page (ltr) 5.8s
🟢 rtl › direct setPage selects only the target page (rtl) 15.2s
🟢 the page next to the target is selectable after a direct setPage 5.7s
🟢 scroll setPage passes the pages in between, direct setPage does not 5.4s
🟢 tests/smoke.e2e.ts · 1 passed 5.6s
🟢 horizontal pager pages with the panel buttons 5.6s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 9.8s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 9.8s

Tested by e2e 0.23.1 · 7m 19s · ios · run artifacts

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve

No open findings.

Reviewed with this repository's own Sentinel configuration (979305794be0).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@github-actions

Copy link
Copy Markdown

🟢 e2e: 1 flaky, 67 passed

⚠️ 1 flaky test passed on a retry

⚠️ scroll setPage passes the pages in between, direct setPage does not
tests/set-page-animation.e2e.ts:104

ASSERTION_FAILED at step 8 of 8: expect.toHaveText getByTestId("set-page-animation-passed"), after 10.0s

  • Expected: text /^passed: [12](,\d)*,6$/
  • Observed: text "passed: 3,4,5,6" (1 match)
  • Screen: com.pagerviewexample

Evidence: screenshot, log

All 68 tests in 27 files
Test Time
⚠️ tests/set-page-animation.e2e.ts · 1 flaky, 3 passed 37.7s
🟢 ltr › direct setPage selects only the target page (ltr) 6.8s
🟢 rtl › direct setPage selects only the target page (rtl) 17.8s
🟢 the page next to the target is selectable after a direct setPage 6.3s
⚠️ scroll setPage passes the pages in between, direct setPage does not (1 failed attempt first) 6.9s
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 3s
🟢 basic pager › in LTR › pages horizontally 23.9s
🟢 basic pager › in LTR › pages vertically 13.7s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 25.7s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 9.9s
🟢 setPage called behind a native-stack modal lands on the requested page 9.9s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 7.3s
🟢 outer pager stays responsive after its page count changes around a nested pager 7.3s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 7 passed 48.6s
🟢 leaving a page with setPage blurs its input 8.0s
🟢 setPage with an input focused lands on the target page 6.8s
🟢 leaving a page with a swipe blurs its input 5.4s
🟢 an input focused on the new page keeps focus 7.3s
🟢 an input focused on the new page keeps focus going back 8.1s
🟢 a swipe keeps the focus the new page takes from onPageSelected 6.9s
🟢 setPage keeps the focus the new page takes from onPageSelected 6.0s
🟢 tests/issues/issue-1156-nested-horizontal-scroll.e2e.ts · 3 passed 17.1s
🟢 a horizontal ScrollView in a page scrolls instead of the pager 5.6s
🟢 the pager takes the swipe once the ScrollView is at its edge 6.3s
🟢 a swipe outside the ScrollView changes the page 5.2s
🟢 tests/issues/issue-1196-set-page-after-add.e2e.ts · 6 passed 38.3s
🟢 setPageWithoutAnimation selects a page added in the same commit 5.0s
🟢 setPage animates to a page added in the same commit 5.4s
🟢 setPage from useEffect animates to a page added in the same commit 5.4s
🟢 setPageWithoutAnimation selects a page added to an empty pager in the same commit 6.1s
🟢 an index that is not there yet is ignored, not applied later 7.1s
🟢 pages that come back report the page the pager lands on once 9.4s
🟢 tests/issues/issue-1199-scroll-state.e2e.ts · 2 passed 10.6s
🟢 setPage reports settling, then idle once the page has stopped 5.8s
🟢 a swipe reports settling when the finger lifts, then idle once the page has stopped 4.8s
🟢 tests/issues/issue-1205-diagonal-swipe.e2e.ts · 2 passed 10.8s
🟢 a slanted, mostly vertical drag scrolls the list 5.5s
🟢 a slanted, mostly horizontal drag changes the page 5.3s
🟢 tests/issues/issue-1229-text-input-cursor.e2e.ts · 5 passed 29.2s
🟢 a tap that moves places the cursor in the input above the pager 5.5s
🟢 a tap that moves places the cursor in a single-line input on a page 5.8s
🟢 a tap that moves places the cursor in a single-line input on a page with scrolling disabled 6.1s
🟢 a tap that moves places the cursor in a multiline input on a page 5.6s
🟢 a tap that moves places the cursor in a multiline input on a page with scrolling disabled 6.3s
🟢 tests/issues/issue-1248-clipped-text-scroll.e2e.ts · 2 passed 11.2s
🟢 an upward drag over clipped text scrolls the list 5.0s
🟢 a nested vertical list keeps its own drag 6.1s
🟢 tests/issues/issue-1250-page-selected-timing.e2e.ts · 2 passed 11.2s
🟢 setPage reports the selected page before it starts moving 5.7s
🟢 a flick reports the selected page when the finger lifts 5.5s
🟢 tests/issues/issue-219-empty-pager.e2e.ts · 3 passed 18.5s
🟢 a pager that mounts empty shows its first page when pages arrive 5.0s
🟢 a pager that loses all its pages shows them again when they come back 7.7s
🟢 setPage works as soon as pages arrive in a pager that mounted empty 5.9s
🟢 tests/issues/issue-424-swipe-cancels-press.e2e.ts · 3 passed 21.1s
🟢 a tap on a button in a page presses it 5.6s
🟢 a swipe that starts on a button in a page cancels its touch 5.1s
🟢 a swipe while the JS thread is busy does not press the button 10.3s
🟢 tests/issues/issue-965-pages-before-current.e2e.ts · 6 passed 33.7s
🟢 inserting a page before the current one keeps it visible 5.8s
🟢 inserting a page at the current index keeps the current page 5.5s
🟢 removing a page before the current one keeps it visible 5.4s
🟢 removing pages up to the current index keeps it visible 5.2s
🟢 moving the current page keeps it visible 5.5s
🟢 moving a page next to the current one keeps it rendered 6.2s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 8.0s
🟢 a pager remounted after its screen was covered starts on its own initialPage 8.0s
🟢 tests/issues/pr-1241-switch-state-restore.e2e.ts · 1 passed 8.4s
🟢 a page that comes back keeps the switch value React set while it was away 8.4s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 18.2s
🟢 on-drag: dragging the pager blurs the input 5.9s
🟢 on-drag: setPage keeps the input focused 6.0s
🟢 none: dragging the pager keeps the input focused 6.3s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 28.0s
🟢 setPage mounts the target and its neighbours only 6.5s
🟢 swiping mounts the next neighbour 6.7s
🟢 preload distance 0 mounts only the pages visited 6.5s
🟢 a visited page keeps its scroll position 8.4s
🟢 tests/material-top-bar.e2e.ts · 1 passed 10.4s
🟢 material top tabs survive a native-stack push and pop 10.4s
🟢 tests/memo-pages.e2e.ts · 1 passed 7.0s
🟢 memoized pages do not re-render with the pager 7.0s
🟢 tests/native-driver-events.e2e.ts · 2 passed 10.9s
🟢 native driver events › setPage through the Animated ref drives the native value 5.9s
🟢 native driver events › a swipe drives the native value 5.0s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 8.6s
🟢 nested horizontal and vertical pagers scroll independently 8.6s
🟢 tests/on-page-selected.e2e.ts · 1 passed 12.2s
🟢 onPageSelected fires an alert for every page change 12.2s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 14.2s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 14.2s
🟢 tests/smoke.e2e.ts · 1 passed 6.1s
🟢 horizontal pager pages with the panel buttons 6.1s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 9.0s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 9.0s

Tested by e2e 0.23.1 · 8m 47s · android · run artifacts

@github-actions

Copy link
Copy Markdown

🟢 e2e ios-spm: 51 passed

All 51 tests in 20 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 22s
🟢 basic pager › in LTR › pages horizontally 37.2s
🟢 basic pager › in LTR › pages vertically 16.8s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 28.3s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 25s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 6.0s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 7.1s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 5.9s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 18.1s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 18.4s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 17.3s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 5.9s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 6.3s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 10.5s
🟢 setPage called behind a native-stack modal lands on the requested page 10.5s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 11.7s
🟢 keyboard avoidance does not shrink the page under the keyboard 11.7s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 8.9s
🟢 outer pager stays responsive after its page count changes around a nested pager 8.9s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 8.9s
🟢 FlatList inside the pager gets the search bar safe-area insets 8.9s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 2m 17s
🟢 leaving a page with setPage blurs its input 9.8s
🟢 setPage with an input focused lands on the target page 9.4s
🟢 a setPage two pages away lands on the far page 9.0s
🟢 a setPage repeated during the slide changes nothing 8.5s
🟢 leaving a page with a swipe blurs its input 8.6s
🟢 an input focused on the new page keeps focus 9.6s
🟢 a swipe keeps the focus the new page takes from onPageSelected 9.8s
🟢 a setPage that interrupts another lands on the page asked for last 9.5s
🟢 a setPage back to the page a slide is passing lands there 6.8s
🟢 a setPage that interrupts another still lands on the later page 9.5s
🟢 a setPage redirected once the focus has landed blurs it 8.9s
🟢 two setPage calls that cancel out land on the first page 8.4s
🟢 right to left › leaving a page with a swipe blurs its input 20.2s
🟢 a page that grows with the keyboard still lands on the target page 9.4s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 6.4s
🟢 a pager scrolled to a focused field still lands on the page asked for 6.4s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 9.0s
🟢 a pager remounted after its screen was covered starts on its own initialPage 9.0s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 23.3s
🟢 on-drag: dragging the pager blurs the input 7.9s
🟢 on-drag: setPage keeps the input focused 7.7s
🟢 none: dragging the pager keeps the input focused 7.7s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 44.4s
🟢 setPage mounts the target and its neighbours only 10.2s
🟢 swiping mounts the next neighbour 10.5s
🟢 preload distance 0 mounts only the pages visited 10.2s
🟢 a visited page keeps its scroll position 13.4s
🟢 tests/material-top-bar.e2e.ts · 1 passed 15.0s
🟢 material top tabs survive a native-stack push and pop 15.0s
🟢 tests/memo-pages.e2e.ts · 1 passed 11.7s
🟢 memoized pages do not re-render with the pager 11.7s
🟢 tests/native-driver-events.e2e.ts · 2 passed 15.7s
🟢 native driver events › setPage through the Animated ref drives the native value 8.0s
🟢 native driver events › a swipe drives the native value 7.7s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 14.2s
🟢 nested horizontal and vertical pagers scroll independently 14.2s
🟢 tests/on-page-selected.e2e.ts · 1 passed 16.2s
🟢 onPageSelected fires an alert for every page change 16.2s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 20.4s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 20.4s
🟢 tests/set-page-animation.e2e.ts · 4 passed 40.9s
🟢 ltr › direct setPage selects only the target page (ltr) 7.7s
🟢 rtl › direct setPage selects only the target page (rtl) 19.2s
🟢 the page next to the target is selectable after a direct setPage 7.1s
🟢 scroll setPage passes the pages in between, direct setPage does not 6.8s
🟢 tests/smoke.e2e.ts · 1 passed 8.4s
🟢 horizontal pager pages with the panel buttons 8.4s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 13.0s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 13.0s

Tested by e2e 0.23.1 · 9m 44s · ios · run artifacts

@krozniata
krozniata merged commit ea75443 into main Nov 17, 2026
13 checks passed
@krozniata
krozniata deleted the ci/docs-build-on-pr branch November 17, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants