Skip to content

Commit 47ca65a

Browse files
committed
fix(ci): resolve smoke test static server path issue
Replace relative path __dirname + '../../dist/apps/web' with absolute path using process.env.GITHUB_WORKSPACE to ensure smoke tests can find build artifacts regardless of execution directory. Fixes smoke test failures where CI couldn't locate root element and main scripts.
1 parent 5a21b03 commit 47ca65a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ jobs:
807807
808808
const server = http.createServer((req, res) => {
809809
const parsedUrl = url.parse(req.url, true);
810-
let filePath = path.join(__dirname, '../../dist/apps/web', parsedUrl.pathname === '/' ? 'index.html' : parsedUrl.pathname);
810+
let filePath = path.join(process.env.GITHUB_WORKSPACE || '.', 'dist/apps/web', parsedUrl.pathname === '/' ? 'index.html' : parsedUrl.pathname);
811811
812812
const extname = path.extname(filePath);
813813
const contentType = {

0 commit comments

Comments
 (0)