Skip to content

Commit

Permalink
Fix tests (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSCahill authored and kbatuigas committed Oct 25, 2024
1 parent 7757400 commit 153f537
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
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

0 comments on commit 153f537

Please sign in to comment.