Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

ci: run the skin contrast check in the static job

DeryFerdf78fc1eb556a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6eb34d57da..80f4731354 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -100,6 +100,7 @@ jobs:
run: pnpm exec vitest run scripts/ci-scope.test.ts scripts/ci-linux-lanes.test.ts scripts/ci-workflow.test.ts scripts/testing/verification-docs.test.ts
- name: Validate locale catalogs
run: pnpm i18n:check
+ - run: pnpm check:contrast
- run: pnpm lint
- name: Source guards
# The tests that only read the source: seconds here, and they stay in the shards. On Nov 3-4 2026 one of them was
diff --git a/scripts/check-skin-contrast.mjs b/scripts/check-skin-contrast.mjs
index 21d581689a..43bff8dff0 100644
--- a/scripts/check-skin-contrast.mjs
+++ b/scripts/check-skin-contrast.mjs
@@ -276,7 +276,7 @@ for (const skinId of ["daylight", "pop"]) {
["--color-danger-ink", "--color-danger"],
["--color-success-ink", "--color-success"],
]) {
- const ratio = contrast(bubble[fg] ?? "", bubble[bg] ?? "");
+ const ratio = contrast(resolve(bubble[fg] ?? "", bubble), resolve(bubble[bg] ?? "", bubble));
if (ratio === null || ratio < 4.5) {
failed = true;
bubbleFailed = true;