Skip to content

Commit 1a60814

Browse files
Upgrade Doc Detective (#1148)
Co-authored-by: Manny Silva <hawkeyexl@gmail.com>
1 parent 6acbecd commit 1a60814

File tree

21 files changed

+5813
-5812
lines changed

21 files changed

+5813
-5812
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name: Build Production Site
55
on:
66
push:
7-
branches: ['v/*', shared, api, site-search]
7+
branches: ['main', 'v/*', shared, api, site-search]
88
jobs:
99
dispatch:
1010
runs-on: ubuntu-latest

.github/workflows/test-docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
---
21
name: Run doc tests
32
on:
3+
schedule:
4+
- cron: '0 0 * * *'
45
pull_request:
56
types: [opened, reopened, synchronize]
67
workflow_dispatch:
78
repository_dispatch:
89
types: [trigger-tests]
10+
911
jobs:
1012
setup:
1113
runs-on: ubuntu-latest
@@ -24,6 +26,7 @@ jobs:
2426
- 'modules/console/**'
2527
quickstart:
2628
- 'modules/get-started/pages/quick-start.adoc'
29+
2730
run-tests:
2831
needs: setup
2932
permissions:
@@ -55,11 +58,10 @@ jobs:
5558
echo "REDPANDA_GITHUB_TOKEN=${{ env.ACTIONS_BOT_TOKEN }}" >> $GITHUB_ENV
5659
5760
- name: Run all tests
58-
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }}
61+
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' || github.event_name == 'schedule' }}
5962
uses: doc-detective/github-action@v1
6063
with:
61-
input: ../../modules
62-
version: 2.19.1
64+
input: ../../modules/get-started/pages/quick-start.adoc
6365
working_directory: redpanda-docs/tests/setup-tests
6466
exit_on_fail: true
6567
# create a PR/issue only if the workflow wasn't already triggered by a PR
@@ -71,12 +73,12 @@ jobs:
7173
if: ${{ needs.setup.outputs.quickstart == 'true' || needs.setup.outputs.console == 'true' }}
7274
uses: doc-detective/github-action@v1
7375
with:
74-
version: 2.19.1
7576
input: ../../modules/get-started/pages/quick-start.adoc
7677
working_directory: redpanda-docs/tests/setup-tests
7778
exit_on_fail: true
7879
env:
7980
REDPANDA_GITHUB_TOKEN: ${{ env.ACTIONS_BOT_TOKEN }}
81+
8082
- name: Upload debug artifacts
8183
if: failure()
8284
uses: actions/upload-artifact@v4
-16.3 KB
Loading
-15.3 KB
Loading
2.92 KB
Loading
-14.3 KB
Loading

modules/console/images/license.png

-20.4 KB
Loading

modules/console/images/login.png

36 Bytes
Loading
434 Bytes
Loading
-19.4 KB
Loading

0 commit comments

Comments
 (0)