title: How to run a command in background in Windows GitHub Action
body: <p>I would like to serve local files through a web-server and execute some tests inside GitHub Action that runs Windows, but I cannot make it run server in the background</p>
  <p>Here's my setup:</p>
  <pre><code>name: CI Windows
  
  on:
    push:
      branches:
      - '*'
  
  jobs:
    build:
      runs-on: windows-2019
  
      steps:
      - uses: actions/checkout@v1
  
      - uses: actions/setup-python@v2
        with:
          python-version: '3.x'
  
      - name: Test local api
        run: |
          cmd /c &quot;START /b run-local-api-server.bat&quot;
          curl -X GET &quot;http://localhost:9195/README.md&quot;
  </code></pre>
  <p>And <code>run-local-api-server.bat</code> script:</p>
  <pre><code>@echo off
  
  python3 -m http.server 9195
  </code></pre>
  <p>The error I get is <code>curl: (7) Failed to connect to localhost port 9195: Connection refused</code>.</p>
  <p>Links:</p>
  <ul>
  <li><a href="https://github.com/ribtoks/test-action-background" rel="nofollow noreferrer">full repository with this code</a></li>
  <li><a href="https://github.com/ribtoks/test-action-background/runs/2248753184?check_suite_focus=true" rel="nofollow noreferrer">failed run</a></li>
  </ul>