Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tests #817

Merged
merged 2 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,29 @@ jobs:
pull-requests: write
issues: write
strategy:
fail-fast: false # Ensure all matrix jobs run to completion even if one fails
matrix:
os: [ubuntu-latest] # Only using Linux for now since macOS takes a long time
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: redpanda-docs
- name: Test docs
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }}
run: npm i && npm run test-docs
working-directory: setup-tests
uses: doc-detective/github-action@v1
with:
input: ../modules
working_directory: redpanda-docs/setup-tests
exit_on_fail: true
# create a PR/issue only if the workflow wasn't already triggered by a PR
create_pr_on_change: true
create_issue_on_fail: true

- name: Test Console docs
if: needs.setup.outputs.console == 'true'
run: npm i && npm run test-console-docs
working-directory: setup-tests
uses: doc-detective/github-action@v1
with:
input: ../modules/console
working_directory: redpanda-docs/setup-tests
exit_on_fail: true
4 changes: 2 additions & 2 deletions modules/console/test-resources/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ services:
enabled: true
repository:
url: https://github.com/redpanda-data/docs
branch: console-updates
branch: main
baseDirectory: modules/console/test-resources
ports:
- 8080:8080
Expand Down Expand Up @@ -243,4 +243,4 @@ services:
- redpanda_network
depends_on:
redpanda-0:
condition: service_healthy
condition: service_healthy