Skip to content

Commit 1e42517

Browse files
committed
ci: stabilize os release validation gates
1 parent 77e82fa commit 1e42517

45 files changed

Lines changed: 26 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/quality.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,43 @@ jobs:
6363
skip-avatar-clone: "true"
6464
no-vision-deps: "true"
6565

66+
- name: Check homepage smoke scope
67+
id: homepage-scope
68+
shell: bash
69+
run: |
70+
set -euo pipefail
71+
72+
if [ "${{ github.event_name }}" != "pull_request" ]; then
73+
echo "run=true" >> "$GITHUB_OUTPUT"
74+
exit 0
75+
fi
76+
77+
git fetch --no-tags --depth=1 origin "${{ github.base_ref }}"
78+
changed_files="$(git diff --name-only "origin/${{ github.base_ref }}...HEAD")"
79+
if grep -Eq '^(packages/homepage/|packages/shared-brand/|packages/app-core/scripts/write-homepage-release-data\.mjs|\.github/workflows/(deploy-homepage|release-electrobun|release-orchestrator)\.yml)' <<< "${changed_files}"; then
80+
echo "run=true" >> "$GITHUB_OUTPUT"
81+
else
82+
echo "run=false" >> "$GITHUB_OUTPUT"
83+
fi
84+
85+
- name: Skip unrelated homepage smoke
86+
if: steps.homepage-scope.outputs.run != 'true'
87+
run: echo "Skipping homepage smoke; this PR does not touch homepage release surfaces."
88+
6689
- name: Build homepage
90+
if: steps.homepage-scope.outputs.run == 'true'
6791
working-directory: packages/homepage
6892
run: bun run build
6993
env:
7094
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7195

7296
- name: Install homepage browser
97+
if: steps.homepage-scope.outputs.run == 'true'
7398
working-directory: packages/homepage
7499
run: ../../node_modules/.bin/playwright install --with-deps chromium
75100

76101
- name: Test homepage downloads
102+
if: steps.homepage-scope.outputs.run == 'true'
77103
working-directory: packages/homepage
78104
run: bun run test:e2e
79105
env:
28.5 KB
28.5 KB
23.7 KB
23.7 KB
433 KB
433 KB
174 KB
174 KB
27.9 KB

0 commit comments

Comments
 (0)