Skip to content

Commit

Permalink
[Tests] add executable action
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 15, 2023
1 parent bc01095 commit c4232e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/executable.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c4232e8

Please sign in to comment.