Skip to content

Commit

Permalink
feat: print debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Jan 2, 2022
1 parent e9066b2 commit a8a4894
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/node-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Print version information
run: |
echo OS: $(node -p "os.version()")
echo Node.js: $(node --version)
echo npm: $(npm --version)
echo git: $(git --version)
- name: Run post-checkout steps
if: ${{ inputs.post-checkout-steps }}
uses: ./.github/tmp/post-checkout-steps
Expand All @@ -126,6 +134,9 @@ jobs:
if: ${{ inputs.post-install-steps }}
uses: ./.github/tmp/post-install-steps

- name: Print installed dependencies
run: npm ls --all

This comment has been minimized.

Copy link
@ljharb

ljharb Oct 12, 2023

Member

@dominykas why is this using --all? doesn't npm ls print everything by default?

This comment has been minimized.

Copy link
@dominykas

dominykas Oct 13, 2023

Author Member

Not as of v7 or v8, I think - the default is --depth 1: https://docs.npmjs.com/cli/v7/commands/npm-ls#depth

This comment has been minimized.

Copy link
@ljharb

ljharb Oct 13, 2023

Member

ah - is --all roughly the same as --depth=9999?

This comment has been minimized.

Copy link
@dominykas

dominykas Oct 13, 2023

Author Member

The docs say Infinity, but yeah.

continue-on-error: true

- name: Run tests
run: ${{ inputs.test-command }}
Expand Down

0 comments on commit a8a4894

Please sign in to comment.