From d2a052247d97c8754c0485ec0fdaf7012d9a226d Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 16 Jan 2025 10:16:00 -0500 Subject: [PATCH] integrate does `--silent` --- .github/workflows/ci.action.yml | 25 ++++++++++++++++++++++++ .github/workflows/{ci.yml => ci.app.yml} | 22 ++++++++------------- src/integrate.ts | 2 +- 3 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/ci.action.yml rename .github/workflows/{ci.yml => ci.app.yml} (68%) diff --git a/.github/workflows/ci.action.yml b/.github/workflows/ci.action.yml new file mode 100644 index 0000000..e579916 --- /dev/null +++ b/.github/workflows/ci.action.yml @@ -0,0 +1,25 @@ +on: + push: + branches: + - main + paths: + - action.js + pull_request: + paths: + - action.yml + - action.js + +jobs: + test1: + runs-on: ubuntu-latest + strategy: + matrix: + container: + - null + - ubuntu:latest + container: ${{ matrix.container }} + steps: + - uses: actions/checkout@v4 + - run: "! deno" + - uses: ./ + - run: deno --version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.app.yml similarity index 68% rename from .github/workflows/ci.yml rename to .github/workflows/ci.app.yml index 8cf0d77..fb0cfe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.app.yml @@ -2,23 +2,17 @@ on: push: branches: - main + paths: + - app.ts pull_request: + paths: + - app.ts + - src/**.ts + - deno.json + - deno.lock + - README.md jobs: - test-action: - runs-on: ubuntu-latest - strategy: - matrix: - container: - - null - - ubuntu:latest - container: ${{ matrix.container }} - steps: - - uses: actions/checkout@v4 - - run: "! deno" - - uses: ./ - - run: deno --version - lint: runs-on: ubuntu-latest steps: diff --git a/src/integrate.ts b/src/integrate.ts index 7ca6818..ef1d923 100644 --- a/src/integrate.ts +++ b/src/integrate.ts @@ -90,7 +90,7 @@ export default async function ( } function shells(): [Path, string][] { - const eval_ln = 'eval "$(pkgx dev --shellcode)"'; + const eval_ln = 'eval "$(pkgx --silent dev --shellcode)"'; const zdotdir = flatmap(Deno.env.get("ZDOTDIR"), Path.abs) ?? Path.home(); const zshpair: [Path, string] = [zdotdir.join(".zshrc"), eval_ln];