v2.0.0-next.5 #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |