/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
tests/utils/basePath.ts
13 строк
423 B
Zyie
chore: Improve test server setup by dynamically allocating port (#11874)
04 фев 2026, 17:13
Не верифицирован
04 фев 2026, 17:13
a83d2bb
Код
Авторство
О чём код?
export const isCI = process.env.GITHUB_ACTIONS === 'true'; const GITHUB_SHA = (process.env.GITHUB_SHA || 'master'); const serverPort = process.env.SERVER_PORT || '8080'; export const basePath = isCI ? `https://raw.githubusercontent.com/pixijs/pixijs/${GITHUB_SHA}/tests/utils/assets/` : `http://127.0.0.1:${serverPort}/tests/utils/assets/`; export function getAsset(file: string) { return basePath + file; }