fix(ci): guard browser context cleanup and export news e2e env before build
This commit is contained in:
1 parent
fff284aaa0
commit
da90b90c97
2 files changed
+4
-3
No files matched your search
@@ -295,7 +295,7 @@ test("staff signs in, saves a draft, previews it and publishes to anonymous read
|
||||
body: JSON.stringify(errors, null, 2),
|
||||
contentType: "application/json",
|
||||
});
|
||||
await anonymous.close();
|
||||
await anonymous.close().catch(() => {});
|
||||
await database.end();
|
||||
redis.disconnect();
|
||||
}
|
||||
|
||||
@@ -36,7 +36,8 @@ trap 'exit 143' TERM
|
||||
|
||||
pnpm install --frozen-lockfile
|
||||
pnpm exec playwright install chromium
|
||||
build_attempted=1
|
||||
export NEWS_E2E_IMAGE="$image"
|
||||
export NEWS_E2E_RELEASE="$sha"
|
||||
DOCKER_BUILDKIT=1 docker build --network=host --progress=plain \
|
||||
--build-arg NEXT_DEPLOYMENT_ID="$sha" -t "$image" .
|
||||
NEWS_E2E_IMAGE="$image" NEWS_E2E_RELEASE="$sha" node --import tsx e2e/news-real/run.ts
|
||||
NEWS_E2E_IMAGE="$image" NEWS_E2E_RELEASE="$sha" node --import tsx e2e/news-real/run.ts
|
||||
Reference in new issue
Block a user