trunk CLI and a Trunk API key.
New features
- The
trunkCLI. Install it withcurl -fsSL https://install.trunk.io | shon macOS and Linux. Windows support is experimental. Store your key once withtrunk auth api-key set, then runtrunk flakytests uploadafter your tests, or wrap your test command withtrunk flakytests test. The CLI updates itself outside CI, and you can pin versions. See Trunk CLI. trunk-io/analytics-uploader@v3. Version 3 of the GitHub Action runs thetrunkCLI for you. Pass an API key with the Upload test results permission astoken. See GitHub Actions.
Updates
- Uploads use an API key. Create an API key with the Upload test results permission under Settings → Developer → API Keys. It replaces the organization API token for uploads. See Permissions.
- Trunk Analytics CLI 1.0.0. Version 1.0.0 and later accept only an API key and require
--test-collection-id. To keep using the organization token for now, stay on a 0.17.x release. See the CLI reference. - Upgrading from
@v2. Replacetokenwith an API key, settest-collection-idon every step, and remove thehide-bannerandpublic-repo-idinputs. To keep the organization token for now, stay on@v2. See Upgrading from v2. - Fork pull requests. Pass
--allow-forked-pr-uploadswith--test-collection-idto upload from forks withtrunk flakytests, or setallow-forked-pr-uploads: trueon the v3 action. See Fork PR uploads.