Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 319dfbd

Browse files
committed
Add tests
1 parent 3b42481 commit 319dfbd

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/ build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,27 @@ jobs:
4848
artifacts/${{ env.ARTIFACT }}
4949
retention-days: 7
5050

51+
test:
52+
needs: build
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Download artifacts
56+
uses: actions/download-artifact@v4
57+
with:
58+
name: docs
59+
path: artifacts
60+
61+
- name: Test documentation
62+
uses: JetBrains/writerside-checker-action@v1
63+
with:
64+
instance: ${{ env.INSTANCE }}
65+
5166
deploy:
5267
environment:
5368
name: github-pages
5469
url: ${{ steps.deployment.outputs.page_url }}
5570
# Requires build job results
56-
needs: build
71+
needs: [ build, test ]
5772
runs-on: ubuntu-latest
5873

5974
steps:
@@ -80,7 +95,7 @@ jobs:
8095
publish-indexes:
8196
environment:
8297
name: algolia-index
83-
needs: [ build, deploy ]
98+
needs: [ build, test, deploy ]
8499
runs-on: ubuntu-latest
85100
container:
86101
image: registry.jetbrains.team/p/writerside/builder/algolia-publisher:2.0.32-3

0 commit comments

Comments
 (0)