Skip to content

Commit 44fde2d

Browse files
BYKcodex
andcommitted
Validate CLI and docs builds in full CI
Co-Authored-By: GPT-6 Sol <noreply@openai.com>
1 parent 7c34509 commit 44fde2d

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get pnpm store directory
3434
shell: bash
3535
run: |
36-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36+
echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV"
3737
3838
- uses: actions/cache@v4
3939
name: Setup pnpm cache
@@ -65,9 +65,11 @@ jobs:
6565
exit 0
6666
fi
6767
68-
echo "all=false" >> "$GITHUB_OUTPUT"
69-
echo "base=$BASE_SHA" >> "$GITHUB_OUTPUT"
70-
echo "cli=false" >> "$GITHUB_OUTPUT"
68+
{
69+
echo "all=false"
70+
echo "base=$BASE_SHA"
71+
echo "cli=false"
72+
} >> "$GITHUB_OUTPUT"
7173
git diff --name-only "$BASE_SHA" HEAD > "$RUNNER_TEMP/changed-paths"
7274
git diff --diff-filter=D --name-only "$BASE_SHA" HEAD > "$RUNNER_TEMP/deleted-paths"
7375
@@ -89,7 +91,12 @@ jobs:
8991
run: |
9092
if [[ "${{ steps.scope.outputs.all }}" == "true" ]]; then
9193
pnpm build
94+
pnpm --filter sentry run build
95+
pnpm --filter sentry-cli-docs run build
9296
else
97+
if grep -q '^apps/cli-docs/' "$RUNNER_TEMP/changed-paths" && [[ "${{ steps.scope.outputs.cli }}" != "true" ]]; then
98+
pnpm --filter sentry run generate:docs
99+
fi
93100
pnpm --filter "...[${{ steps.scope.outputs.base }}]..." --if-present run build
94101
if [[ "${{ steps.scope.outputs.cli }}" == "true" ]]; then
95102
pnpm --filter sentry-cli-docs run build

0 commit comments

Comments
 (0)