Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ Use `.env` for local-action input/environment values.

## CLI coupling

This action is intentionally coupled to `Use-Tusk/tusk-drift-cli`. When the CLI
This action is intentionally coupled to `Use-Tusk/tusk-cli`. When the CLI
changes, verify these contracts still hold:

- Release installer contract: `install.sh` still supports both `curl ... | sh`
and `curl ... | sh -s -- <version>`.
- Source build contract: `cli-source: source` can still clone
`Use-Tusk/tusk-drift-cli` and build from repo root with `go build -o tusk .`.
`Use-Tusk/tusk-cli` and build from repo root with `go build -o tusk .`.
- Binary contract: resulting binary name remains `tusk` and `tusk --version`
still works.
- Run command contract: default command in this action remains valid with
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ or [docs](https://docs.usetusk.ai/api-tests/overview).

## What this action does

- Installs the [Tusk CLI](https://github.com/Use-Tusk/tusk-drift-cli) (`tusk`)
with `https://cli.usetusk.ai/install.sh`.
- Installs the [Tusk CLI](https://github.com/Use-Tusk/tusk-cli) (`tusk`) with
`https://cli.usetusk.ai/install.sh`.
- Can optionally build the CLI from a GitHub repo/ref (for unreleased
dogfooding).
- Restores and saves Tusk cache data (optional).
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
```yaml
- uses: actions/setup-go@v5
with:
go-version: '1.25' # or the current Go version required by tusk-drift-cli
go-version: '1.25' # or the current Go version required by tusk-cli
```

## Contact
Expand Down
2 changes: 1 addition & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ describe('main.ts', () => {
'-eo',
'pipefail',
'-c',
`tmp_dir="$(mktemp -d)" && trap 'rm -rf "$tmp_dir"' EXIT && git clone --depth 1 --branch 'main' 'https://github.com/Use-Tusk/tusk-drift-cli.git' "$tmp_dir/repo" && cd "$tmp_dir/repo" && go build -o tusk . && install_dir="/usr/local/bin" && if [ ! -w "$install_dir" ]; then install_dir="$HOME/.local/bin"; mkdir -p "$install_dir"; fi && mv tusk "$install_dir/" && chmod +x "$install_dir/tusk"`
`tmp_dir="$(mktemp -d)" && trap 'rm -rf "$tmp_dir"' EXIT && git clone --depth 1 --branch 'main' 'https://github.com/Use-Tusk/tusk-cli.git' "$tmp_dir/repo" && cd "$tmp_dir/repo" && go build -o tusk . && install_dir="/usr/local/bin" && if [ ! -w "$install_dir" ]; then install_dir="$HOME/.local/bin"; mkdir -p "$install_dir"; fi && mv tusk "$install_dir/" && chmod +x "$install_dir/tusk"`
],
expect.objectContaining({ cwd: '.' })
)
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const DEFAULT_INSTALL_SCRIPT_URL = 'https://cli.usetusk.ai/install.sh'
const DEFAULT_RUN_COMMAND =
'tusk run -c -p --ci --validate-suite-if-default-branch'
const DEFAULT_CACHE_PATH = '~/.cache/tusk'
const CLI_SOURCE_REPOSITORY = 'Use-Tusk/tusk-drift-cli'
const CLI_SOURCE_REPOSITORY = 'Use-Tusk/tusk-cli'
const DEFAULT_CLI_SOURCE_REF = 'main'
const SUBID_BLOCK_SIZE = 65536
const SUBID_MIN_START = 100000
Expand Down
Loading