From c4232e820318ebdac4a7bc5ee05a3ba0f208d9ed Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 15 Sep 2023 13:07:59 -0700 Subject: [PATCH] [Tests] add `executable` action --- .github/workflows/executable.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/executable.yml diff --git a/.github/workflows/executable.yml b/.github/workflows/executable.yml new file mode 100644 index 0000000..29a78d3 --- /dev/null +++ b/.github/workflows/executable.yml @@ -0,0 +1,19 @@ +name: resolve executable + +on: [push, pull_request] + +jobs: + _: + name: cli + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: ljharb/actions/node/install@main + - run: "[ $(./bin/resolve fs) = 'fs' ]" + name: run inside the package with a direct path + - run: "npm link && [ $(resolve fs) = 'fs' ] && npm uninstall -g resolve" + name: run linked as a global in the PATH + - run: "[ $(npx resolve fs) = 'fs' ]" + name: run via npx \ No newline at end of file