From 49595e0c23425e7f0d2fa8bd7d00c4870300feaa Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Wed, 6 May 2026 09:14:38 +0200 Subject: [PATCH 1/2] ci: install Apify CLI with pnpm in scheduled e2e tests `npm install -g apify-cli` started failing in the scheduled E2E tests because the package now ships a `preinstall` hook (`npx only-allow pnpm`) to refuse non-pnpm installs. On the GitHub runners the hook exits 127 (`sh: 1: only-allow: not found`) before any test runs, so every matrix job fails at the install step (e.g. run 25421420663). Set up pnpm via `pnpm/action-setup` and install `apify-cli` globally with `pnpm add -g`, mirroring the pnpm-based approach already used in the docs workflows (#1871). Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/on_schedule_tests.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/on_schedule_tests.yaml b/.github/workflows/on_schedule_tests.yaml index 60c0177ba5..f833594e35 100644 --- a/.github/workflows/on_schedule_tests.yaml +++ b/.github/workflows/on_schedule_tests.yaml @@ -42,8 +42,13 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Install dependencies - run: npm install -g apify-cli + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10 + + - name: Install Apify CLI + run: pnpm add -g apify-cli - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v6 From 8277aaab58055ea2bd0b10a29f50edbef8375e77 Mon Sep 17 00:00:00 2001 From: Vlada Dusek Date: Wed, 6 May 2026 12:09:51 +0200 Subject: [PATCH 2/2] use apify/setup-apify-cli-action --- .github/workflows/on_schedule_tests.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/on_schedule_tests.yaml b/.github/workflows/on_schedule_tests.yaml index f833594e35..909dbc03a8 100644 --- a/.github/workflows/on_schedule_tests.yaml +++ b/.github/workflows/on_schedule_tests.yaml @@ -42,13 +42,10 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - name: Install Apify CLI - run: pnpm add -g apify-cli + uses: apify/setup-apify-cli-action@v1 + with: + token: ${{ secrets.APIFY_TEST_USER_API_TOKEN }} - name: Set up Python ${{ env.PYTHON_VERSION }} uses: actions/setup-python@v6