Skip to content

Commit 4dac502

Browse files
authored
Merge branch 'master' into 1036-apify-validate-schema-should-validate-all-schemas-in-actorjson-not-just-input_schema
2 parents 7b2fe78 + 3d04a74 commit 4dac502

147 files changed

Lines changed: 5575 additions & 3188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cucumber.yaml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/e2e.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: E2E Tests
2+
3+
on:
4+
# Run after a pre-release is published to npm
5+
workflow_run:
6+
workflows: ["Create a pre-release"]
7+
types: [completed]
8+
branches: [master]
9+
10+
# TODO: Remove after validating the workflow works
11+
pull_request:
12+
branches: [master]
13+
14+
# Manual trigger — pick any branch in the Actions UI to test that branch's build.
15+
workflow_dispatch:
16+
17+
# Daily fallback at 06:00 UTC
18+
schedule:
19+
- cron: "0 6 * * *"
20+
21+
concurrency:
22+
group: e2e-${{ github.event_name }}-${{ github.ref }}
23+
cancel-in-progress: false
24+
25+
jobs:
26+
e2e:
27+
if: >
28+
startsWith(github.repository, 'apify/') &&
29+
(github.event_name != 'workflow_run' ||
30+
github.event.workflow_run.conclusion == 'success')
31+
32+
name: E2E Tests (${{ matrix.os }})
33+
timeout-minutes: 30
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
os: [ubuntu-latest]
39+
40+
runs-on: ${{ matrix.os }}
41+
42+
steps:
43+
- name: Mask secrets
44+
run: |
45+
echo "::add-mask::${{ secrets.APIFY_TEST_USER_API_TOKEN }}"
46+
47+
- uses: actions/checkout@v6
48+
49+
- name: Use Node.js 24
50+
uses: actions/setup-node@v6
51+
with:
52+
node-version: 24
53+
package-manager-cache: false
54+
55+
- name: Enable corepack
56+
run: |
57+
corepack enable
58+
corepack prepare yarn@stable --activate
59+
60+
- name: Activate cache for yarn
61+
uses: actions/setup-node@v6
62+
with:
63+
cache: yarn
64+
65+
- name: Install dependencies
66+
run: yarn
67+
68+
- name: Build CLI from source
69+
run: yarn build
70+
71+
- name: Run E2E tests
72+
env:
73+
APIFY_CLI_DISABLE_TELEMETRY: 1
74+
TEST_USER_TOKEN: ${{ secrets.APIFY_TEST_USER_API_TOKEN }}
75+
run: yarn test:e2e

.github/workflows/issue_labeling.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
issues: write
1414

1515
steps:
16-
# Add the "t-tooling" label to all new issues
16+
# Add the "t-dx" label to all new issues
1717
- uses: actions/github-script@v8
1818
with:
1919
script: |
2020
github.rest.issues.addLabels({
2121
issue_number: context.issue.number,
2222
owner: context.repo.owner,
2323
repo: context.repo.repo,
24-
labels: ["t-tooling"]
24+
labels: ["t-dx"]
2525
})

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [1.5.0](https://github.com/apify/apify-cli/releases/tag/v1.5.0) (2026-04-27)
6+
7+
### 🚀 Features
8+
9+
- Add execution context to telemetry events ([#1074](https://github.com/apify/apify-cli/pull/1074)) ([9288ff8](https://github.com/apify/apify-cli/commit/9288ff886864acd78b5e06b5ff13096774bd81f6)) by [@patrikbraborec](https://github.com/patrikbraborec)
10+
- Improve --help output for AI agents and humans ([#1080](https://github.com/apify/apify-cli/pull/1080)) ([e9be7ee](https://github.com/apify/apify-cli/commit/e9be7eee232fe4627ee252dc48dc01f2413fbccf)) by [@patrikbraborec](https://github.com/patrikbraborec), closes [#1060](https://github.com/apify/apify-cli/issues/1060)
11+
- Add `apify api` subcommand for direct API access ([#1076](https://github.com/apify/apify-cli/pull/1076)) ([da15ae7](https://github.com/apify/apify-cli/commit/da15ae7bb48c353d1b62928b666fd634ee5c2832)) by [@patrikbraborec](https://github.com/patrikbraborec), closes [#1075](https://github.com/apify/apify-cli/issues/1075)
12+
- Add --yes flag to commands that prompt users ([#1105](https://github.com/apify/apify-cli/pull/1105)) ([3446b68](https://github.com/apify/apify-cli/commit/3446b688d550e95952c07360f8b5d30894fa83f9)) by [@l2ysho](https://github.com/l2ysho)
13+
- Add --user-agent flag for caller-identified telemetry ([#1102](https://github.com/apify/apify-cli/pull/1102)) ([5d1fe06](https://github.com/apify/apify-cli/commit/5d1fe06771a5a60d68c6487de092c4f5bdcb5ef2)) by [@patrikbraborec](https://github.com/patrikbraborec), closes [#1100](https://github.com/apify/apify-cli/issues/1100)
14+
515
## [1.4.1](https://github.com/apify/apify-cli/releases/tag/v1.4.1) (2026-04-02)
616

717
### 🐛 Bug Fixes
@@ -46,6 +56,10 @@ All notable changes to this project will be documented in this file.
4656

4757
## [1.2.1](https://github.com/apify/apify-cli/releases/tag/v1.2.1) (2026-01-06)
4858

59+
### 🔧 CI/CD
60+
61+
- Fix release flow permissions ([#988](https://github.com/apify/apify-cli/pull/988)) ([a9d0d90](https://github.com/apify/apify-cli/commit/a9d0d9013f42e48bfcdddbc467e995b1655cf853)) by [@vladfrangu](https://github.com/vladfrangu)
62+
4963
## [1.2.0](https://github.com/apify/apify-cli/releases/tag/v1.2.0) (2026-01-06)
5064

5165
### 🚀 Features

CLAUDE.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# CLAUDE.md
2+
3+
Guidance for Claude Code working in this repository. Humans should read [README.md](./README.md) and [CONTRIBUTING.md](./CONTRIBUTING.md) first.
4+
5+
## Entry points
6+
7+
- `apify` CLI — `src/entrypoints/apify.ts`
8+
- `actor` CLI — `src/entrypoints/actor.ts`
9+
10+
## Before you push
11+
12+
Run `yarn lint && yarn format && yarn build && yarn test:local` before pushing. Run `yarn test:api` too if you changed anything that touches the Apify API.
13+
14+
If you modified a command's flags, args, description, or added/removed a command, also run `yarn update-docs` and commit the regenerated `docs/` output.
15+
16+
## Code conventions
17+
18+
- Package manager: **Yarn 4** (via Corepack). Do not use npm.
19+
- Use `.js` import specifiers for local files (e.g. `import { foo } from './foo.js'`). The `.ts` source resolves at build time.
20+
- Commands extend `ApifyCommand` from `src/lib/command-framework/apify-command.ts`. Follow the pattern of existing commands: `static override name`, `static override description`, `static override flags/args`, and an `async run()` method.
21+
- New commands must be registered in `src/commands/_register.ts` (or the parent `_index.ts` for subcommands).
22+
- Do not add docstrings, comments, or type annotations to code you did not change. Keep diffs tight.
23+
24+
## Testing
25+
26+
- Tests use **Vitest**. See [CONTRIBUTING.md](./CONTRIBUTING.md#writing-tests) for `useAuthSetup` and `useTempPath` hook usage.
27+
- API tests must include `[api]` in the test name and live in `test/api/`.
28+
- Always `import process from 'node:process'` in command/lib code — never use `globalThis.process`. This is required for test cwd mocks to work.
29+
30+
## Things to avoid
31+
32+
- Do not use `--no-verify` to skip git hooks. Fix the underlying issue.
33+
- Do not edit `docs/` by hand — it is generated by `yarn update-docs`.

0 commit comments

Comments
 (0)