diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c47e28..253259c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,14 +33,11 @@ jobs: - name: Type check run: deno task check - - name: Run tests - run: deno task test + - name: Run tests (with coverage) + run: deno task test:coverage - name: Generate coverage report - if: success() - run: | - deno test --allow-read --allow-write --allow-env --allow-run --allow-sys --coverage=.coverage - deno coverage --detailed .coverage + run: deno task coverage build: runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index cbe61d7..b816b3e 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,6 @@ Thumbs.db # test coverage .coverage/ cov/ + +# deepwork session state +.slim/deepwork/ diff --git a/.ignore b/.ignore new file mode 100644 index 0000000..a704baf --- /dev/null +++ b/.ignore @@ -0,0 +1,2 @@ +!.slim/deepwork/ +!.slim/deepwork/** diff --git a/deno.json b/deno.json index d4e3782..23336cc 100644 --- a/deno.json +++ b/deno.json @@ -9,7 +9,8 @@ "fmt:check": "deno fmt --check", "lint": "deno lint", "test": "deno test --allow-read --allow-write --allow-env --allow-run --allow-sys", - "coverage": "deno coverage --detailed", + "test:coverage": "deno test --allow-read --allow-write --allow-env --allow-run --allow-sys --coverage=.coverage", + "coverage": "deno coverage --detailed .coverage", "build": "deno compile --output dist/stackctl src/main.ts", "build:darwin:x64": "deno compile --target x86_64-apple-darwin --output dist/stackctl-darwin-x64 src/main.ts", "build:darwin:arm64": "deno compile --target aarch64-apple-darwin --output dist/stackctl-darwin-arm64 src/main.ts", diff --git a/src/cli/mod.ts b/src/cli/mod.ts index 058f749..0d44754 100644 --- a/src/cli/mod.ts +++ b/src/cli/mod.ts @@ -1487,9 +1487,8 @@ export function buildCli(): Command { cli.command("plan", "Produce a deterministic plan of what an operation would do.") .arguments("") .option("--profile ", "Use a specific profile.") - .option("--stacks ", "Comma-separated list of stack names.", { - complete: completeStackNames, - } as any) + .option("--stacks ", "Comma-separated list of stack names.") + .complete("stacks", completeStackNames) .option("--override ", "Comma-separated list of override files.") .option("--json", "Output machine-readable JSON.") .description(