title: GitHub action CI check for npm test keep running non stop
body: <p>I have worked with <code>github actions</code> before while setting up <code>github-workflow</code>, but this is the first time I'm including action/job for <code>npm test</code>.</p>
  <p>I have configured it to run the actions on pull request to develop branch as usual... but the tests never finish running in the github action jobs. I've been googling but can't seem to find a relevant solution.</p>
  <p><strong>Github pull-request screenshot 1</strong>
  <img src="https://user-images.githubusercontent.com/45185388/109968920-24e0e300-7ca8-11eb-8391-368a4d0f948f.PNG" alt="github-action-still-running" /></p>
  <p><strong>Github pull-request screenshot 2</strong>
  <img src="https://user-images.githubusercontent.com/45185388/109968946-2b6f5a80-7ca8-11eb-8b7c-addebdd9e604.PNG" alt="github-action-still-running-jobs" /></p>
  <p>I'm using <code>nodejs</code> and the test is written with <code>jasmine</code>. I don't know if it has anything to do with my settings or test configuration which I set up myself, so I've also included some relevant code/files below just in case.</p>
  <p><strong>.github/workflows/node.js.yml</strong></p>
  <pre><code># This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
  # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
  
  name: Node.js CI
  
  on:
    push:
      branches: [ main, develop ]
    pull_request:
      branches: [ main, develop ]
  
  jobs:
    build:
  
      runs-on: ubuntu-latest
  
      strategy:
        matrix:
          node-version: [10.x, 12.x, 14.x, 15.x]
          # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
  
      steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: npm ci
      - run: npm run build --if-present
      - run: npm test
  </code></pre>
  <p>The <code>node.js.yml</code> file above☝is already in the <code>develop branch</code>.</p>
  <p><strong>package.json</strong></p>
  <pre><code>{
    //scripts
  
    &quot;scripts&quot;: {
      &quot;prestart&quot;: &quot;node -r esm src/startMessage.js&quot;,
      &quot;start&quot;: &quot;npm-run-all --parallel lint:watch&quot;,
      &quot;lint&quot;: &quot;esw src --color&quot;,
      &quot;lint:watch&quot;: &quot;npm run lint -- --watch&quot;,
      &quot;test&quot;: &quot;nodemon --exec babel-node spec/run.js&quot;
    },
    
  //dependencies
  
    &quot;dependencies&quot;: {
      &quot;arg&quot;: &quot;^5.0.0&quot;,
      &quot;chalk&quot;: &quot;^4.1.0&quot;,
      &quot;esm&quot;: &quot;^3.2.25&quot;,
      &quot;execa&quot;: &quot;^5.0.0&quot;,
      &quot;inquirer&quot;: &quot;^8.0.0&quot;,
      &quot;listr&quot;: &quot;^0.14.3&quot;,
      &quot;ncp&quot;: &quot;^2.0.0&quot;,
      &quot;npm-run-all&quot;: &quot;^4.1.5&quot;,
      &quot;pkg-install&quot;: &quot;^1.0.0&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;babel-cli&quot;: &quot;^6.26.0&quot;,
      &quot;babel-core&quot;: &quot;^6.26.3&quot;,
      &quot;babel-preset-env&quot;: &quot;^1.7.0&quot;,
      &quot;babel-register&quot;: &quot;^6.26.0&quot;,
      &quot;eslint&quot;: &quot;^7.21.0&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
      &quot;eslint-watch&quot;: &quot;^7.0.0&quot;
      &quot;eslint-watch&quot;: &quot;^7.0.0&quot;,
      &quot;jasmine&quot;: &quot;^3.6.4&quot;,
      &quot;nodemon&quot;: &quot;^2.0.7&quot;
    }
  }
  </code></pre>
  <p><strong>src/cli.js</strong></p>
  <pre><code>export let cli = (args) =&gt; {
    console.log(args);
  }
  </code></pre>
  <p><strong>spec/cli.spec.js</strong></p>
  <pre><code>import { cli as cli } from '../src/cli';
  
  describe('cli function', () =&gt; {
  
    it('should return undefined', () =&gt; {
      let test = cli();
      expect(test).toBeUndefined();
    });
  });
  </code></pre>
  <p><strong>spec/run.js</strong></p>
  <pre><code>import Jasmine from 'jasmine';
  
  const jasmine = new Jasmine();
  jasmine.loadConfigFile('spec/support/jasmine.json');
  
  jasmine.execute();
  </code></pre>
  <p><strong>spec/support/jasmine.json</strong></p>
  <pre><code>{
    &quot;spec_dir&quot;: &quot;spec&quot;,
    &quot;spec_files&quot;: [
      &quot;**/*[sS]pec.js&quot;
    ],
    &quot;helpers&quot;: [
      &quot;helpers/**/*.js&quot;
    ],
    &quot;stopSpecOnExpectationFailure&quot;: false,
    &quot;random&quot;: true
  }
  </code></pre>
  <p><strong>.babelrc</strong></p>
  <pre><code>{
    &quot;presets&quot;: [
      &quot;env&quot;
    ]
  }
  </code></pre>
  <p>The test works fine locally when I run <code>npm test</code> in my terminal. I need help with the github action/workflow on push or pull request (so that I can merge the feature branch which contains the test into the development branch):</p>
  <ul>
  <li><p>What is making the test run non-stop in the GitHub action?</p>
  </li>
  <li><p>How can I get the github action checks to pass and run successfully?</p>
  </li>
  </ul>