Skip to content

Commit dc3f78d

Browse files
committed
Add synthetics test to ci
1 parent f8f55f5 commit dc3f78d

File tree

3 files changed

+407
-2
lines changed

3 files changed

+407
-2
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,35 @@ jobs:
3737

3838
build-api-lambda:
3939
uses: ./.github/workflows/build-api-lambda.yml
40+
4041

42+
synthetics:
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v5
46+
47+
- name: Bootstrap Action Workspace
48+
id: bootstrap
49+
uses: ./.github/actions/bootstrap
50+
51+
- name: Install dependencies
52+
working-directory: src/Elastic.Documentation.Site
53+
run: npm ci
54+
55+
- name: Run assembler
56+
run: |
57+
dotnet run --project src/tooling/docs-builder -- assembler config init --local
58+
dotnet run --project src/tooling/docs-builder -- assembler clone -c local --skip-private-repositories
59+
dotnet run --project src/tooling/docs-builder -- assembler build -c local --skip-private-repositories &
60+
61+
- name: Wait for docs
62+
working-directory: src/Elastic.Documentation.Site
63+
run: npx wait-on http://localhost:4000/docs
64+
65+
- name: Run synthetics
66+
working-directory: src/Elastic.Documentation.Site
67+
run: npm run synthetics:test
68+
4169
npm:
4270
runs-on: ubuntu-latest
4371
defaults:

0 commit comments

Comments
 (0)