Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

chore(e2e): restrict git ceiling directory for actor push (#3467)

Richard Solare976265ff2b3
diff --git a/test/e2e/tools.mjs b/test/e2e/tools.mjs
index c8fd969bb..2835e9c28 100644
--- a/test/e2e/tools.mjs
+++ b/test/e2e/tools.mjs
@@ -71,7 +71,10 @@ export function getActorTestDir(url) {
export async function pushActor(client, dirName) {
await copyPackages(dirName);
try {
- execSync('npx -y apify-cli@beta push', { cwd: dirName });
+ execSync('npx -y apify-cli@beta push', {
+ cwd: dirName,
+ env: { ...process.env, GIT_CEILING_DIRECTORIES: dirname(dirName) },
+ });
} catch (err) {
console.error(colors.red(`Failed to push actor to the Apify platform. (signal ${colors.yellow(err.signal)})`));