Repository navigation
Run ha-ui validation on self-hosted runners #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
efraespada
merged 4 commits into
develop
from
chore/24-run-ha-ui-validation-on-self-hosted-runners
Nov 12, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e8482c4
ci: prepare publishing artifacts on self-hosted runners
efraespada 173e15b
ci: validate internal ha-ui pull requests on Apple Silicon
efraespada 09e877c
ci: pass the package revision without npm config substitution
efraespada db43193
ci: run self-hosted validation on repository branch pushes
efraespada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
|
|
||
| # Do not mount the runner's Docker client configuration into the build. | ||
| docker_host=$(docker context inspect --format '{{.Endpoints.docker.Host}}') | ||
| docker_config=$(mktemp -d "${RUNNER_TEMP:?}/ha-ui-docker.XXXXXX") | ||
| container="ha-ui-catalog-${GITHUB_RUN_ID:?}-${GITHUB_RUN_ATTEMPT:?}" | ||
| export DOCKER_HOST="$docker_host" DOCKER_CONFIG="$docker_config" | ||
| unset DOCKER_CONTEXT | ||
|
|
||
| cleanup() { | ||
| docker rm --force "$container" >/dev/null 2>&1 || true | ||
| rm -rf -- "$docker_config" | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| docker run --rm --init --interactive --name "$container" --platform linux/arm64 \ | ||
| --shm-size 1g \ | ||
| --mount "type=bind,source=$(pwd -P),target=/workspace" \ | ||
| --workdir /workspace \ | ||
| --env CI=1 --env STORYBOOK_DISABLE_TELEMETRY=1 \ | ||
| --env npm_config_store_dir=/tmp/ha-ui-pnpm-store \ | ||
| --env "HA_UI_PACKED_EXPECTED_REVISION=${HA_UI_PACKED_EXPECTED_REVISION:-}" \ | ||
| "${HA_UI_PLAYWRIGHT_IMAGE:?}" bash -euo pipefail <<'LINUX' | ||
| HA_UI_NODE_VERSION=$(tr -d '\r\n' < .node-version) | ||
| package_manager=$(node --print 'require("./package.json").packageManager') | ||
| HA_UI_PNPM_VERSION=${package_manager#pnpm@} | ||
| export HA_UI_NODE_VERSION HA_UI_PNPM_VERSION | ||
|
|
||
| npm exec --yes --package="node@$HA_UI_NODE_VERSION" --package="$package_manager" -c ' | ||
| set -eu | ||
| test "$(node --version)" = "v$HA_UI_NODE_VERSION" | ||
| test "$(pnpm --version)" = "$HA_UI_PNPM_VERSION" | ||
| pnpm install --frozen-lockfile --ignore-scripts | ||
| pnpm check | ||
| pnpm test | ||
| if [ -n "$HA_UI_PACKED_EXPECTED_REVISION" ]; then | ||
| pnpm build | ||
| fi | ||
| GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.directory GIT_CONFIG_VALUE_0=/workspace pnpm test:package | ||
| pnpm test:ssr | ||
| pnpm storybook:build | ||
| pnpm test:engines | ||
| pnpm test:storybook | ||
| ' | ||
| LINUX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.