Skip to content

Commit

Permalink
Create reproduction for actions/setup-node#720
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinoid committed Dec 9, 2024
0 parents commit df52caa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Failing Workflow
on: # yamllint disable-line rule:truthy
push: {}
workflow_dispatch: {}
jobs:
test:
name: Checkout and Setup
timeout-minutes: 2
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
A reproduction for <https://github.com/actions/setup-node/issues/720>.

[Actions](https://github.com/kevinoid/setup-node-issue-720/actions) hang on
step `actions/setup-node@v4` due to the presence of a non-empty `node.js`
file. A 2 minute timeout is added to cause the workflow to fail after waiting
a reasonable amount of time. The hang occurs due to
<https://github.com/npm/cmd-shim/issues/71>.
(Note: <https://github.com/npm/cmd-shim/pull/64> contains a possible fix.)
2 changes: 2 additions & 0 deletions node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// A non-empty JavaScript file
module.exports = true;

0 comments on commit df52caa

Please sign in to comment.