| name: test npm install |
| on: |
| push: |
| paths: |
| - '**/npmtest.yml' |
| |
| workflow_dispatch: |
| |
| permissions: # added using https://github.com/step-security/secure-workflows |
| contents: read |
| |
| jobs: |
| test: |
| strategy: |
| fail-fast: true |
| matrix: |
| os: [ubuntu-20.04, macos-latest] |
| ruby: [2.7] |
| runs-on: ${{ matrix.os }} |
| steps: |
| - name: Check Path 1 |
| run: | |
| echo "===================" |
| echo $PATH |
| which -a node || true |
| which -a npm || true |
| echo "===================" |
| - uses: actions/setup-node@v3 |
| with: |
| node-version: '18.16.0' |
| - name: Check Path 2 |
| run: | |
| echo "===================" |
| echo $PATH |
| which -a node || true |
| which -a npm || true |
| echo "===================" |