Skip to content

feat: Add browser view (passive and interactive modes) #87

feat: Add browser view (passive and interactive modes)

feat: Add browser view (passive and interactive modes) #87

Workflow file for this run

name: CI
on:
push:
branches: [master, v2-poc-requirements]
pull_request:
jobs:
checks:
name: Build, lint, unit + integration tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
# Installs the pnpm version pinned by package.json's `packageManager` field; must run
# before setup-node so its `cache: pnpm` can find the pnpm store.
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm run build
- run: pnpm run lint
- run: pnpm run format:check
- run: pnpm test
e2e:
name: e2e ${{ matrix.file }} (apify-cli + Docker)
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
# One job per e2e file. Each file starts its own runtime container on the fixed host ports
# (3333/3000), so files cannot share a daemon; separate runners make them parallel instead.
matrix:
file:
- actor-dev-loop
- debug-mode
- dev-folder-bind-mount
- browser-view-ts
- browser-view-py
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- run: pnpm install --frozen-lockfile
# The suite manages Docker itself against the runner's daemon: it pre-pulls the
# Actor base images, builds the runtime image, starts the runtime container with
# the host Docker socket, and drives it with stock apify-cli via npx.
- run: pnpm exec vitest run test/e2e/${{ matrix.file }}.test.ts
# The e2e's runtime container is normally removed by the suite's afterAll; on
# failure it is left running, so its server-side view of any failed request
# (log-stream lifecycle included) is captured here for diagnosis.
- name: Dump runtime container logs on failure
if: failure()
run: |
for c in $(docker ps -aq --filter name=actor-runtime-e2e); do
docker logs --tail 300 "$c" || true
done