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];